Windows Media Services Banner Art

VidToASF command-line options

The command-line options allow you to specify a particular setting or include additional files in the .asf file. To view an online listing of the options, from the Windows Start menu, point to Programs, and then click Command Prompt, type the name of the utility, and press ENTER.

Option Option argument Description
-audio stream Specifies which stream you want to use if the audio file has more than one audio stream.
-audiofile filename Specifies an audio file to take the place of the audio in the video file. Use this option to replace the audio track of an .avi file with a compressed .wav file.
-eccspan on|off Turns on error correction. Error correction is on by default for all .asf files of less than 150,000 kilobits per second (Kbps) and off by default for all .asf files of more than that. To override the default, set the eccspan option on the command line.
-in filename.ext Specifies the input video file (either .avi or .mov) that you are converting to an .asf file. This is the only required option.
-leadtime # of milliseconds Specifies the desired time that you want the .asf file to wait after it buffers but before it begins playing. The default is 1,000 milliseconds. If you are converting .avi files with smaller bit rates (less than 100 Kbps), increase the lead time (up to 3,000 milliseconds).
-out filename.asf Specifies a name for the output file. If you don't give the output file a name, VidToASF uses the name of the input file and substitutes the .asf extension.
-script filename Specifies the name of the script file to use in adding URLs, script commands, content information, or markers to your output file.
-seekable on|off Fast-forwards or rewinds through an .asf file. When you create an .asf file, VidToASF sometimes issues a warning, "No index built," if there aren't enough key frames for VidToASF to generate an index. If this happens, you cannot seek in the .asf file. However, if you use the -seekable option to turn on seeking, VidToASF allows seeking in the .asf file, but the .asf file looks imperfect during seeking. The default for this option is off.
-video stream Specifies which stream to use if the video file has more than one stream. Because most video files have only one stream, the default is to use the standard video stream.
-wavespan # of milliseconds Specifies the length of time (in milliseconds) over which audio will be smeared in the file. If packets are lost, audio smearing helps create better results. Unless you are sure that packets will not be lost, it is better to use the default setting (400 milliseconds).

Related Topics


© 1996-1999 Microsoft Corporation. All rights reserved.