[FFmpeg-user] Can FFMPEG output multiple files with one command runs?
Robert Krüger
krueger at lesspain.de
Mon Nov 7 11:06:27 CET 2011
Hi,
On Nov 4, 2011, at 17:47 , Zhen Ma wrote:
> Thanks Robert ! It works like your mentioned. But It turns out another
> problem for me . I am trying to do the 2pass encoding. So the first
> multiple line encoding command would be like that:
>
> ffmpeg -y -i youtube_480.flv -pass 1 -stats 1 -f mp4 -s 864x480 -aspect 1.8
> -r 25 -threads 0 -vcodec libx264 -b 600k -maxrate 600k -fpre
> presets/main.ffpreset -an /dev/null -pass 1 -stats 2 -f mp4 -s 432x240
> -aspect 1.8 -r 25 -threads 0 -vcodec libx264 -b 300k -maxrate 300k -fpre
> presets/baseline.ffpreset -an /dev/null -pass 1 -stats 3 -f mp4 -s 320x180
> -aspect 1.8 -r 25 -threads 0 -vcodec libx264 -b 200k -maxrate 200k -fpre
> presets/baseline.ffpreset -an /dev/null
>
> But the problem is the x264_2pass.log which was generated with first pass
> of first sub-command was overwirtten by the second and third sub-command.
> I was trying to find the way to specify the name of log file. I can only
> see x264 has parameter stats which allows us to change the name of log
> file, but by looking at the ffmpeg ,it seems it doesn't implement this
> parameter in ffmpeg command line.
>
> I don't know if you know something about it , how can I change the name of
> pass log file with ffmpeg command line?
>
>
> Thank you very much!
>
>
> 2011/11/3 Robert Krüger <krueger at lesspain.de>
>
>>
>> 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>
>>
>> e.g.
>>
>> ffmpeg -i input.mpg -vcodec mjpeg -acodec copy out1.mov -vcodec mpeg2video
>> -acodec mp2 out2.avi .......
>>
sorry but I don't know the answer to that question but I would probably look at the argument -passlogfile documented at http://ffmpeg.org/ffmpeg.html and if anything does not behave as documented there, file a bug report as described here: http://ffmpeg.org/bugreports.html.
And please do not top post (http://en.wikipedia.org/wiki/Posting_style#Top-posting). It's more or less a rule on this list not to.
HTH,
Robert
More information about the ffmpeg-user
mailing list