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 171777 - Ogm seek support is broken
Ogm seek support is broken
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-27 10:22 UTC by Luca Ognibene
Modified: 2005-04-25 17:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple test that triggers the problem (2.44 KB, text/x-csrc)
2005-03-27 10:24 UTC, Luca Ognibene
  Details
output from the test case (12.82 KB, application/octet-stream)
2005-03-27 10:35 UTC, Luca Ognibene
  Details
patch (7.99 KB, patch)
2005-03-31 15:51 UTC, Ronald Bultje
none Details | Review

Description Luca Ognibene 2005-03-27 10:22:03 UTC
When i seek in ogm files the playback of video hangs after a while. From
backtrace it hangs in an _element_wait call, it seems some broken timestamps are
pushed from oggdemux. I can provide some files but they are quite big: 130Mb of
ogm + divx + vorbis.
Mplayer and xine plays them fine.. I've tried with ubuntu's packages and cvs
from a week ago.
It would be also really cool to support seek in keyframe (like mplayer and xine)
but this is a different matter..
Comment 1 Luca Ognibene 2005-03-27 10:24:58 UTC
Created attachment 39302 [details]
simple test that triggers the problem
Comment 2 Luca Ognibene 2005-03-27 10:34:24 UTC
Maybe the information about the backtrace is not totally right.. I have a
somewhat modified tree here so i can't produce a right bt right now.. I can
confirm that it hangs in totem + gstreamer with ubuntu hoary with all ogm files
(not theora) that i have.. 
Comment 3 Luca Ognibene 2005-03-27 10:35:01 UTC
Created attachment 39303 [details]
output from the test case
Comment 4 Ronald Bultje 2005-03-31 15:51:50 UTC
Created attachment 39514 [details] [review]
patch

Yeah, I know it's been broken... I've looked into it rather a lot today, and
came up with the attached patch. This fixes seeking in OGM files that I have,
they include subtitles and everything. Please confirm.
Comment 5 Ronald Bultje 2005-03-31 15:53:53 UTC
Please reopen if still broken, and then supply a sample file. Thanks.
Comment 6 Luca Ognibene 2005-03-31 20:31:43 UTC
I have tested current cvs with 0.0.1 of aldegonde. I don't have totem installed
from source right now.. i'll try with totem this w-end if that matters.
Seeking is a lot better now but if fails (block) sometime and i also have bad
synch between video,subtitle and audio. Video and subtitle seem always to be in
synch, it's the audio that sometime is not in synch.. I'm uploading two ogm file
here: http://skaboy.no-ip.org/~luogni/stor/
Tell me if you need something! btw, viewing these files in my system (athlon k7
550Mhz) eats 100% cpu with aldegonde..
Comment 7 Ronald Bultje 2005-03-31 22:32:18 UTC
550MHz is not much, sync problems can be caused by that. Our scheduling model
causes some overhead, which makes us a bit slower than xine/mplayer right now.
We're trying to improve that. Aldegonde vs. Totem shouldn't matter.

I'll try the movies and work on it further if I can reproduce it.

To come back to your initial post, I have implemented keyframe seeking in 0.9
already, and will try it for 0.8 at some point, too.
Comment 9 Ronald Bultje 2005-04-02 09:06:31 UTC
The Last Attack movie that you sent me contains subtitles. Apparently, at some
point after some seeks, the subtitle thread gets messed up and causes a filled
queue. Therefore, the chain function of ogmtextparse hangs. There is no
video/audio, and thus the video/audio outputs hang.

I'll try to find out why the subtitle track is messed up.
Comment 10 Ronald Bultje 2005-04-25 17:40:04 UTC
Ah, found it, fixed in CVS. My testcase on that movie works again, let me know
if more breaks. Sync is bad after a seek, I don't know how come... :-(.