This section is devoted for tools based on the asfbin code
which are related with ASF file format processing or parsing.
This is a command line utility for validation input ASF for conformance
with Advanced Systems Format (ASF) Specification Revision 01.20.02.
All warnings and errors are reported through utility return value.
It's free for evaluation purposes.
asfvalidator (-i|-in) <input_file> [-dur <expected_duration in s>]
[-verbose] [-details] [-debug] [-noclean]
- -verbose -details and -debug mean verboseness levels from lowest to
- <input_file> is a path to the input ASF file to be checked.
- <expected_duration in s> is an expected duration in seconds.
Decimal point can be used. Audio stream and video streams are checked
separately. If the distance between the first and the last sample is
greater than given expected time an error is returned (code 19).
- -noclean if not set causes asfvalidator to check if all video streams
start with key frame. (code 22 is returned if this kind of failure is detected.)
Sample command line options:
- asfvalidator -i myfile.asf
- asfvalidator -i myfile.asf -details
- asfvalidator -i myfile_is_30sec_long.asf -verbose -o out.asf -dur 30
As an output comment the asfvalidator application returns a conformance
level from a fully conforming, through minor and major warnings to major
errors status if detected. After asfvalidator returns an ERRORLEVEL environmental variable
holds result code.
Below is the full list of all error codes that can be returned when parsing ASF files:
Back to top
|An internal application error.|
|File open error.|
|When reached unexpected end of file. File is cut or downloading was interrupted.|
|Header object block is smaller than expected.|
|An internal application error. (Memory allocation problem).|
|Packet error encountered.|
|No payload data.|
|Invalid data in the header object was encountered.|
|No file properties object was found in ASF header.|
|More than one header or no header at all detected or index object with no data object appeared.|
|Internal application error.|
|Error writing output file.|
|Incomplete object was detected. Usually when parsing a header object of variable length such as strings. |
|Expected object was not found in the ASF header or in data packet.|
|Internal error when writing data packets.|
|No streams in the file to process or bad sample order detected.|
|Audio or video stream is shorter than expected.|
|There was an attempt to write to a read-only file.|
|Input file is too short to hold a valid ASF file.|
|Expected sample of given stream was not found.|
|No streams were found in the processed file.|
|Internal error. Sample order error.|
|File does not conform to ASF Specification.|