[FFmpeg-trac] #3508(undetermined:new): Cannot open stats file on second pass when attempting to generate multiple outputs.

FFmpeg trac at avcodec.org
Wed Apr 2 09:32:23 CEST 2014


#3508: Cannot open stats file on second pass when attempting to generate multiple
outputs.
-------------------------------------+-------------------------------------
             Reporter:  ianken       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 What's wrong with the following?
 {{{
 $ ffmpeg -y -i big_buck_bunny_720p_stereo.avi -vf
 scale=240:trunc(ow/a/2)*2 -g 48 -keyint_min 6 -vcodec mpeg4 -b:v 400k
 -pass 1 -an -f mp4 NUL -vf scale=320:trunc(ow/a/2)*2 -g 48 -keyint_min 6
 -vcodec mpeg4 -b:v 700k -pass 1 -an -f mp4 NUL
 $ ffmpeg -y -i big_buck_bunny_720p_stereo.avi -vf
 scale=240:trunc(ow/a/2)*2 -g 48 -keyint_min 6 -vcodec mpeg4 -b:v 400k
 -pass 2 -an -f mp4 big_buck_bunny_400.mp4 -vf scale=320:trunc(ow/a/2)*2 -g
 48 -keyint_min 6 -vcodec mpeg4 -b:v 700k -pass 2 -an -f mp4
 big_buck_bunny_700.mp4
 }}}
 (I don't remember if you are using {{{-vf}}} correctly, in theory, a
 complex filtergraph might be needed.)
 Note that even if your command lines would work (they may work with a
 {{{cp ffmpeg2pass-0.log ffmpeg2pass-1.log && cp ffmpeg2pass-0.log.mbtree
 ffmpeg2pass-1.log.mbtree}}} in-between), this is not how two-pass encoding
 is supposed to by used to the best of my knowledge.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3508#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list