[FFmpeg-user] Is the extra one frame or 5 frames? Bug?

Mark Filipak markfilipak.imdb at gmail.com
Thu Sep 21 02:23:55 EEST 2023


The following is from the FFprobe of a 24/1.001fps, MP4 video which I
carefully cut at a final key frame. FFmpeg added an extra frame (or an
extra 5 frames?).

Look at the final 4 frames:

frames.frame.134044.pts=503167665
frames.frame.134044.pts_time="1:33:10.751833" --+
frames.frame.134044.pict_type="B"               ¦
                                                ¦--
(10.793533-10.751833)*24/1.001 = 1 frame
frames.frame.134045.pts=503171418               ¦
frames.frame.134045.pts_time="1:33:10.793533" --+
frames.frame.134045.pict_type="P"               ¦
                                                ¦--
(10.835244-10.793533)*24/1.001 = 1 frame
frames.frame.134046.pts=503175172               ¦
frames.frame.134046.pts_time="1:33:10.835244" --+
frames.frame.134046.pict_type="I"               ¦
                                                ¦--
(11.043789-10.835244)*24/1.001 = 5 frames
frames.frame.134047.pts=503193941               ¦
frames.frame.134047.pts_time="1:33:11.043789" --+
frames.frame.134047.pict_type="P"

"5 frames"? Either the final frame number is wrong or the final
pts_time is wrong.

Which is it? Can anyone duplicate this?

Thanks,
Mark.


More information about the ffmpeg-user mailing list