#5309(undetermined:new): Seek doesn't work in some .mp4 files
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Type: defect Status: new | Priority: normal Component: | Version: git- undetermined | master Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: How to reproduce: {{{ % ffplay -ss 5 ffmpeg version: ffplay version N-78958-g8c24523 built from latest git, on Ubuntu 14.04.3, on 2016-03-07 }}} File is seek_not_working.mp4 The file plays well but always from the beginning: the seek isn't working. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by Arnaud): (will upload sample file) -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by Arnaud): Problematic file uploaded on the ftp server upload.ffmpeg.org I would like to help finding what is the issue and maybe fix it if I can, but I'm not expert with ffmpeg source code, so if someone more experienced has an idea about what is wrong :) -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): Is the issue not reproducible with {{{ffmpeg}}} (the application)? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by Arnaud): I didn't know ffmpeg has a seek option. I tried it the following way: ./ffmpeg -ss 3 -i seek_not_working.mp4 -frames:v 1 out1.jpg and yes, it works. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: => h264 mov Comment: Did you find a sample with fourcc AVd1? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by Arnaud): Sorry, I'm not sure I understand what you meant. You're asking if I have the same problem with other mp4 files? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): No, you promised me in September to search for such a sample. Did you find one? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:7> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by Arnaud): Ah, ok. No sorry: I probably lost it when my hard drive crashed some time ago :( -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:8> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by Arnaud): Did someone has any clue about what might be wrong? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:9> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: h264 mov => h264 mov seek Comment: I suspect the file has only one recovery point. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:10> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Arnaud): Thanks for your reply. How can I check if the file has only on recovery point and if that can be the issue? I tried to figure this out by adding a breakpoints in h264.c:decode_recovery_point but never get there, using my "buggy" file, but also some other files (e.g. [1] from [2]) for which seeking works. [1]: http://www.sample- videos.com/video/mp4/720/big_buck_bunny_720p_50mb.mp4 [2]: http://www.sample-videos.com/ -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:11> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): Replying to [comment:11 Arnaud]:
[1]: http://www.sample- videos.com/video/mp4/720/big_buck_bunny_720p_50mb.mp4
This file contains many IDR frames. I don't know the exact semantic definition of recovery points but all IDR frames can be used for seeking. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:12> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Arnaud): Oh, OK. Indeed that seems to be the problem in my initial file: only one IDR frame. Then I guess this bug can be closed, because there isn't much to fix on ffmpeg library or on ffplay about it, don't you think? If I'm right VLC uses ffmpeg, and I noticed it is able to seek this file, but it seems like it reads all the frames from the IDR frame to achieve this. So I guess it's up to applications to implement such behavior on top of ffmpeg's seek if not enough IDR frames are present. Thanks a lot for your help :) -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:13> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: h264 mov | Resolution: seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): No IDR- (and no I-) frames are necessary to seek a valid H.264 stream, recovery points are sufficient. A stream analyzer is needed to find out if your stream does contain more than one recovery point. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:14> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: git-master | Resolution: Keywords: h264 mov | Blocked By: seek | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): It actually has two keyframes only (as nowadays avc includes recovery points but not with direct show_frames, you need -skip_frame nokey, see #8820) https://samples.ffmpeg.org/ffmpeg- bugs/trac/ticket5309/seek_not_working.mp4 Are we planning to implement decoding seek like said in #3083? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:15> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: git-master | Resolution: Keywords: h264 mov | Blocked By: seek | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by MasterQuestionable): ͏ Codec container wrestling each other... ͏ https://www.google.com/search?hl=en&gl=ca&num=10&q=AVC|H.264|H264|x264 +recovery-point ͏ https://stackoverflow.com/questions/75635925 ͏ https://mpeg.chiariglione.org/tags/sei-messages ͏ . ͏ And the Open GOP (Group of Pictures) non-sense: ͏ That would be essentially identical as well-set ordinary (Closed) GOP. ͏ Ideally each GOP shall be an independent file: ͏ As in: https://github.com/MasterInQuestion/talk/discussions/3#discussioncomment-937... ͏ And videos are not necessarily not meant to be viewed frame-by-frame. (thus any artifact unacceptable) -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:16> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files -------------------------------------+------------------------------------- Reporter: Arnaud | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: git-master | Resolution: Keywords: h264 mov | Blocked By: seek | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): Nope. B frame in one GOP is able to reference a frame in a different GOP. A GOP that contains any such outward-referencing frame is known as an "open GOP". -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:17> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files in ffplay ---------------------------------------+---------------------------------- Reporter: Arnaud | Owner: (none) Type: defect | Status: open Priority: normal | Component: ffplay Version: git-master | Resolution: Keywords: h264 mov seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ---------------------------------------+---------------------------------- Changes (by Balling): * status: new => open * component: undetermined => ffplay * summary: Seek doesn't work in some .mp4 files => Seek doesn't work in some .mp4 files in ffplay Comment: So the bug is only in ffplay. Actually. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:18> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Seek doesn't work in some .mp4 files in ffplay ---------------------------------------+---------------------------------- Reporter: Arnaud | Owner: (none) Type: defect | Status: open Priority: normal | Component: ffplay Version: git-master | Resolution: Keywords: h264 mov seek | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ---------------------------------------+---------------------------------- Changes (by MasterQuestionable): * cc: MasterQuestionable (added) Comment: ͏ Essentially such referencing could be still represented with Closed GOP... ͏ Note the final referencing is certain: not changing randomly. ͏ Probably the Open GOP design is to support certain really unusual fringe cases: ͏ Where 1 GOP would like to reference part (not all) of other GOP. ͏ And using the big GOP containing all is somehow unacceptable. ͏ However there doesn't seem to be much valid cases for such usage. ͏ Plus the apparent havoc of general interop. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:19> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5309: Apply "-accurate_seek" alike default for `ffplay` --------------------------------------+---------------------------------- Reporter: Arnaud | Owner: (none) Type: enhancement | Status: open Priority: normal | Component: ffplay Version: git-master | Resolution: Keywords: seek seeking | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | --------------------------------------+---------------------------------- Changes (by MasterQuestionable): * keywords: h264 mov seek => seek seeking * type: defect => enhancement * summary: Seek doesn't work in some .mp4 files in ffplay => Apply "-accurate_seek" alike default for `ffplay` Comment: ͏ Per <[/wiki/Seeking#Input Seeking]> # Input seeking. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5309#comment:20> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg