2010年2月27日 星期六

A note about ffmpeg - convert video to DVD/VCD/SVCD

4th aunt request me to burn her video into svcd. After trying Avidemux, I decide google for better solution.

I can type many options in console to convert it in fact. But it's not possible for my aunt to use a terminal. I found an option seems very useful when writing scripts for my aunt.

Below are copied from ffmpeg's manual.
-target type
   Specify target file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd", ... ). All the format options (bitrate, codecs, buffer sizes) are then set automatically. You can just type:

         ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg

   Nevertheless you can specify additional options as long as you know they do not conflict with the standard, as in:

         ffmpeg -i myfile.avi -target vcd -bf 2 /tmp/vcd.mpg
So I can write an script, using zenity for file selection, then convert it using "ffmpeg -i source_file -target svcd target_file" command.