[FFmpeg-trac] #10181(undetermined:new): Imprecise seeking in mp4 generated by ffmpeg.
FFmpeg
trac at avcodec.org
Fri Feb 10 01:44:51 EET 2023
#10181: Imprecise seeking in mp4 generated by ffmpeg.
-------------------------------------+-------------------------------------
Reporter: Dale Curtis | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Seeking to 10s yields frame for 10.10s.
Originally reported at:
https://bugs.chromium.org/p/chromium/issues/detail?id=1410446
While the issue reproduces on tip of tree, reporter notes it doesn't
happen with 4.4.2-0ubuntu0.22.04.1. However, when I checkout
origin/release/4.4 I'm still able to reproduce, so I'm not sure what the
Ubuntu version maps too.
How to reproduce:
{{{
% ffmpeg -t 60 -f lavfi -i color=c=black:s=1280x720 -c:v libx264 -tune
stillimage -pix_fmt yuv420p -vf "drawtext=fontfile=DroidSansMono.ttf:
timecode='00\:00\:00\:00': r=23.976: x=(w-tw)/2: y=20: fontcolor=white:
box=1: boxcolor=0x00000099" -y output.mp4
% ffmpeg -ss 00:00:10 -i output.mp4 -frames:v 1 out-bad.png
Observe that out.png says "10:10" at the top instead of "10:00"
% ffmpeg -ss 00:00:09.6 -i output.mp4 -frames:v 1 out-correct.png
ffmpeg built today:
ffmpeg version N-109818-g8ed1d6b5e4 Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 12 (Debian 12.2.0-10)
configuration: --enable-static --enable-libx264 --enable-gpl
libavutil 58. 0.100 / 58. 0.100
libavcodec 60. 0.100 / 60. 0.100
libavformat 60. 0.100 / 60. 0.100
libavdevice 60. 0.100 / 60. 0.100
libavfilter 9. 0.100 / 9. 0.100
libswscale 7. 0.100 / 7. 0.100
libswresample 4. 9.100 / 4. 9.100
libpostproc 57. 0.100 / 57. 0.100
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10181>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list