Visit http://www.ADShareIt.comtitle_cmdln

Top  Previous  Next

Create Task

CLIP0002

Usage1: Create a task file, save settings in a text file with INI Structure.

f2vcmdln.exe -cmd createtask -sourcefile "source file name" -targetfile "target file name" -forceformat formatid -vcodec videocodecid -acodec audiocodecid -taskfile "task file name"
f2vcmdln.exe -cmd createtask -sf "source file name" -tf "target file name" -fmt formatid -vcodec videocodecid -acodec audiocodecid -tkf "task file name"

 

For example:

f2vcmdln.exe -cmd createtask -sourcefile "c:\test.swf" -targetfile "c:\test.avi" -forceformat 0 -vcodec 2 -acodec 0 -taskfile "c:\test2avi.tsk"
Result: create a task file "c:\test2avi.tsk" for converting "c:\test.swf" to an AVI format with Xvid video codec, MP3 audio codec and other default settings.

 

Usage2: Create a task handle, save settings in Windows System Registry.

f2vcmdln.exe -cmd createtask -sourcefile "source file name" -targetfile "target file name" -forceformat formatid -vcodec videocodecid -acodec audiocodecid -taskhandle "task handle string"

f2vcmdln.exe -cmd createtask -sf "source file name" -tf "target file name" -fmt formatid -vcodec videocodecid -acodec audiocodecid -tkh "task handle string"

 

For example:

f2vcmdln.exe -cmd createtask -sourcefile "c:\test.swf" -targetfile "c:\test.avi" -forceformat 0 -vcodec 2 -acodec 0 -taskhandle "F425A9EC-EC0F-44BD-9BF7-F45A94D1CF26"
We recommend you use a GUID as a taskhandle to avoid conflicting with other tasks.
Result: create a task handle "F425A9EC-EC0F-44BD-9BF7-F45A94D1CF26" in Windows System Registry for converting "c:\test.swf" to an AVI format with Xvid video codec, MP3 audio codec and other default settings.

 

Note: Different format followed by different vcodec and acodec.

 

-forceformat 0, means the target file format is AVI format, and then

-vcodec 0 means the video codec is RAW

-vcodec 1 means the video codec is DIVX

-vcodec 2 means the video codec is XVID

-vcodec 3 means the video codec is X264

-vcodec 4 means the video codec is Msmpeg4v2

-vcodec 5 means the video codec is Msmpeg4v1

-vcodec 6 means the video codec is YUVHuff

-vcodec 7 means the video codec is FFVHuff

-vcodec 8 means the video codec is FFV1

 

-acodec 0 means the audio codec is MP3

-acodec 1 means the audio codec is MP2

-acodec 2 means the audio codec is AC3

-acodec 3 means the audio codec is FLAC

-acodec 4 means the audio codec is PCM

 

-forceformat 1, means the target file format is  VCD / MPEG1 format, and then

-vcodec 0 means the video codec is VCD_NTSC

-vcodec 1 means the video codec is VCD_PAL

 

-acodec 0 means the audio codec is MP2

 

-forceformat 2, means the target file format is  DVD / SVCD / MPEG2 format, and then

-vcodec 0 means the video codec is DVD_NTSC

-vcodec 1 means the video codec is DVD_PAL

-vcodec 2 means the video codec is SVCD_NTSC

-vcodec 3 means the video codec is SVCD_PAL

 

-acodec 0 means the audio codec is AC3

-acodec 1 means the audio codec is MP2

 

-forceformat 3, means the target file format is  MPEG4 format, and then

-vcodec 0 means the video codec is XVID

-vcodec 1 means the video codec is MPEG4

-vcodec 2 means the video codec is X264

 

-acodec 0 means the audio codec is AAC

-acodec 1 means the audio codec is MP3

 

-forceformat 4, means the target file format is  WMV / ASF format, and then

-vcodec 0 means the video codec is WMV2

 

-acodec 0 means the audio codec is WMA

 

-forceformat 5, means the target file format is  OGV format, and then

-vcodec 0 means the video codec is THEORA

 

-acodec 0 means the audio codec is VORBIS

 

-forceformat 6, means the target file format is  FLV format, and then

-vcodec 0 means the video codec is H263

-vcodec 1 means the video codec is X264

 

-acodec 0 means the audio codec is MP3

 

-forceformat 7, means the target file format is  MOV format, and then

-vcodec 0 means the video codec is XVID

-vcodec 1 means the video codec is MPEG4

-vcodec 2 means the video codec is X264

 

-acodec 0 means the audio codec is AAC

-acodec 1 means the audio codec is MP3

 

-forceformat 8, means the target file format is  3GP format, and then

-vcodec 0 means the video codec is XVID

-vcodec 1 means the video codec is MPEG4

-vcodec 2 means the video codec is X264

 

-acodec 0 means the audio codec is AAC

-acodec 1 means the audio codec is AMR

 

-forceformat 9, means the target file format is 3GP2 format, and then

-vcodec 0 means the video codec is XVID

-vcodec 1 means the video codec is MPEG4

-vcodec 2 means the video codec is X264

 

-acodec 0 means the audio codec is AAC

-acodec 1 means the audio codec is AMR

-acodec 2 means the audio codec is MP3

 

-forceformat 10, means the target file format is Animated GIF format, and then

-vcodec 0 means the video codec is RX

 

-acodec 0 means no audio stream

 

-forceformat 11, means the target file format is  Image Sequence, and then

-vcodec 0 means the video codec is JPG

-vcodec 1 means the video codec is BMP

-vcodec 2 means the video codec is GIF

-vcodec 3 means the video codec is PCX

-vcodec 4 means the video codec is TIF

-vcodec 5 means the video codec is TGA

-vcodec 6 means the video codec is PNG

 

-acodec 0 means no audio stream