[FFmpeg-trac] #10954(ffmpeg:new): ffmpeg should not round the frame rate from 23.976 fps to 23.98 fps

FFmpeg trac at avcodec.org
Sun Apr 7 11:50:57 EEST 2024


#10954: ffmpeg should not round the frame rate from 23.976 fps to 23.98 fps
-------------------------------------+-------------------------------------
             Reporter:  milahu       |                     Type:  defect
               Status:  new          |                 Priority:  minor
            Component:  ffmpeg       |                  Version:  6.1.1
             Keywords:  framerate    |               Blocked By:
  rounding formatting                |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 when i process a video with 23.976 fps
 then ffmpeg shows the frame rate 23.98 fps

 {{{
 ffmpeg -f lavfi -i color=rate=23.976 -t 0.1 test.mp4
 ffmpeg -i test.mp4 2>&1 | grep "Stream #0:0"
 }}}

 {{{
 Stream #0:0: Video: ..., 23.98 fps, 23.98 tbr, ...
 }}}

 ... which is wrong
 ffmpeg should not round the frame rate to %.2f
 same problem with ffprobe, ffplay, ...

 if rounding of the frame rate is necessary
 then ffmpeg should round the frame rate to at least %.3f
 to preserve 23.976 fps

 the mpv video player
 shows the correct frame rate 23.976fps

 {{{
 $ mpv test.mp4 2>&1 | grep Video
  (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10954>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list