[FFmpeg-trac] #4041(undetermined:new): Bad input frame rate estimation

FFmpeg trac at avcodec.org
Mon Oct 20 10:01:19 CEST 2014

#4041: Bad input frame rate estimation
             Reporter:  qianliang    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0

Comment (by cehoyos):

 Replying to [comment:3 qianliang]:
 > {{{
 > ffmpeg -i source_video_0.ts -vcodec libx264 -vb 1200k -maxrate 1800k
 -bufsize 3600k -r 20 -vprofile main -pix_fmt yuv420p -flags +loop+mv4 -cmp
 256 -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 7 -coder
 1 -trellis 1 -refs 4 -me_range 16 -sc_threshold 40 -i_qfactor 0.71 -qcomp
 0.6 -qmin 15 -qmax 45 -qdiff 4 -rc_eq 'blurCplx^(1-qComp)' -tune
 zerolatency -x264opts keyint=120:min-
 keyint=25:b-pyramid=0:weightp=0:interlaced=0:mixed-refs=1:8x8dct=1 -vsync
 0 -copyts input.ts
 > }}}

 Using {{{-r 20}}} and {{{-vsync 0}}} together leads to invalid files, in
 your case a file with 25fps (25 actual frames per second) that looks like
 a 20fps file.
 You are requesting ''put 20 files per second in the output stream'' and
 ''keep 25 frames per second, don't drop or duplicate any frames''. It is
 impossible for {{{ffmpeg}}} to fulfill both requests, I just sent a patch
 that prints a message if both options were specified.

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

More information about the FFmpeg-trac mailing list