[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
Thu Apr 11 02:47:22 EEST 2024


#10954: ffmpeg should not round the frame rate from 23.976 fps to 23.98 fps
-------------------------------------+-------------------------------------
             Reporter:  milahu       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  minor        |                Component:  ffmpeg
              Version:  6.1.1        |               Resolution:
             Keywords:  framerate    |               Blocked By:
  rounding formatting                |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Balling):

 >when i process a video with 23.976 fps


 Why do you do that, nothing supports that. That actual frame rate is
 24/1.001, just as for all other like 60 or 120.



 >then ffmpeg shows the frame rate 23.98 fps

 That is school rounding and that is what some cameras do, so what is the
 issue, believe me we have a lot of bugs in this, but this one is actually
 correct. See: https://en.wikipedia.org/wiki/24p

 "Remember that although computer editing systems may refer to "24p",
 usually the frame rate is 23.976 frame/s. To add to confusion, the popular
 editing program Final Cut Pro refers to 23.976 as "23.98" in menus and
 dialogs, even though it correctly works with the footage at the 23.976
 frame rate. 23.976 is also not precise though, as the real frame rate is
 24000/1001, so 23.98 is also a correct approximation."


 >the mpv video player shows the correct frame rate 23.976fps

 Actually mpv uses nanoseconds, so even more digits internally and in the
 logs.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10954#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list