[FFmpeg-trac] #10181(undetermined:closed): Imprecise seeking in mp4 generated by ffmpeg.

FFmpeg trac at avcodec.org
Fri Feb 10 09:10:48 EET 2023


#10181: Imprecise seeking in mp4 generated by ffmpeg.
-------------------------------------+-------------------------------------
             Reporter:  Dale Curtis  |                    Owner:  (none)
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:  invalid
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Balling):

 * status:  new => closed
 * resolution:   => invalid

Comment:

 That video has 6 keyframes, ffmpeg.exe -i output.mp4 -vf
 "select=eq(pict_type\,I)" -vsync vfr thumbnails-%02d.png

 will extract all keyframes, and thumbnails-02.png has 00:00:10:10. That
 keyframe has best_effort_timestamp_time=10.000000 indeed. That is coded
 picture number = 250 (counting from 0, not 1). Open in YUView shows that
 250 frame from 0 is 00:00:10:10.

 That means your generated timestamp in the video is wrong, i.e. you use 25
 fps video yet the timecode is for 24 fps.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10181#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list