[FFmpeg-user] Can FFMPEG output multiple files with one command runs?

Robert Krüger krueger at lesspain.de
Thu Nov 3 23:21:34 CET 2011

On Nov 3, 2011, at 22:09 , Zhen Ma wrote:

> Hey guys,
> Is it possible to run one command  to output multiple files?  for example ,
> I would like to covert one video into 3 videos format ,each video has
> different video codec, different bitrate and different resolution.

yes, just specify the output files one after the other, always keeping the arguments before the next output file, i.e.

ffmpeg <infile options> -i <infile> <outfile 1 options> <outfile 1> <outfile 2 options> <outfile 2> ..... <outfile N options> <outfile N>


ffmpeg -i input.mpg -vcodec mjpeg -acodec copy out1.mov -vcodec mpeg2video -acodec mp2 out2.avi .......



More information about the ffmpeg-user mailing list