After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325733 - [oggdemux] seeking to wrong keyframe with ogm
[oggdemux] seeking to wrong keyframe with ogm
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 338804 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-04 08:10 UTC by Vincent Torri
Modified: 2013-07-17 10:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Torri 2006-01-04 08:10:48 UTC
With my usual test program : 

http://www.iecn.u-nancy.fr/~torri/files/gstreamer_seek/seek.c

with an ogm file, and when I seek to times 4'80, then the frame timestamp is equal to 9'08.

You can test that with the program above and the file (use frame #120):

http://www.iecn.u-nancy.fr/~torri/files/gstreamer_pb/blood.ogm

i've tried to find the problem without success.
Comment 1 Wim Taymans 2006-04-24 15:38:10 UTC
oggdemux does not even attempt to locate keyframes yet. Requires adding minimal codec support in oggdemux to parse and use the granulepos to locate keyframes. This is on the TODO list.
Comment 2 Wim Taymans 2006-04-24 15:41:27 UTC
*** Bug 338804 has been marked as a duplicate of this bug. ***
Comment 3 Edward Hervey 2009-03-11 08:20:19 UTC
isn't this a duplicate of #344013 ?
Comment 4 Vincent Torri 2009-03-11 08:52:39 UTC
I'll check that next week-end (I'm away for some days)
Comment 5 Sebastian Dröge (slomo) 2009-09-10 08:55:09 UTC
Vincent?
Comment 6 Wim Taymans 2009-12-11 12:03:59 UTC
Seeking to a keyframe in ogm is problematic as you can't use the granulepos to locate keyframes, this means you need to scan all packets in search for keyframes.
Comment 7 Vincent Torri 2009-12-11 12:08:32 UTC
so it means to do something like what avisynth does for mpeg: parsing first all the file, then using the gathered informations ?
Comment 8 Edward Hervey 2013-07-17 09:14:36 UTC
Vincent, is this behaviour still a problem in 1.x ? The file in comment #0 is not accessible anymore.
Comment 10 Sebastian Dröge (slomo) 2013-07-17 10:26:48 UTC
I can't remember any changes related to ogm, it's probably still broken. However I also didn't see any ogm files out there in the last years so it doesn't feel very important right now
Comment 11 Sebastian Dröge (slomo) 2013-07-17 10:54:59 UTC
That test program needs a special sink
Comment 12 Sebastian Dröge (slomo) 2013-07-17 10:58:12 UTC
Seems to work good enough in totem btw, seeks are not instant but playback starts about at the correct position.

Please reopen if there's still something to fix and there's a good test case