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 616128 - oggdemux: bad calculated granulepos
oggdemux: bad calculated granulepos
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-18 19:09 UTC by David Schleef
Modified: 2011-05-30 10:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.89 KB, patch)
2010-04-18 19:09 UTC, David Schleef
none Details | Review

Description David Schleef 2010-04-18 19:09:17 UTC
Created attachment 159033 [details] [review]
patch

oggdemux calculates the granulepos values incorrectly for this stream:

http://ia331209.us.archive.org/0/items/Patent_Absurdity/Patent_Absurdity_HQ_768kbit.ogv

Instead of the expected values: 64, 65, 66, 67, 68, 69, 70, 71, the current oggdemux outputs 1, 2, 3, 4, 5, 6, 7, 71.  These coincidentally translate to the same timestamps, so playback is correct, however, theoraparse and oggmux get confused if you attempt to remux the stream.  If the stream didn't start at time=0, the first few frames would have the wrong timestamp, and likely be dropped since the incorrect timestamps would be outside the segment.  So I don't think anything *bad* happens during playback.

Patch attached.  It's a bit invasive, so I question whether it's worth breaking a freeze for it.
Comment 1 Tim-Philipp Müller 2010-04-19 12:41:51 UTC
Wonder if this also helps with any of the other ogg (theora) regressions/bugs.
Comment 2 David Schleef 2010-04-19 21:27:30 UTC
You mean #612438?  Sounds plausible.
Comment 3 David Schleef 2010-04-20 19:51:01 UTC
Some additional testing revealed this patch is incomplete.
Comment 4 Vincent Penquerc'h 2010-12-29 10:40:14 UTC
That file's gone, but this issue might be fixed by the last patch in https://bugzilla.gnome.org/show_bug.cgi?id=553244 (no need to wait for a granpos to know which encoding the granpos uses, as it can be known from the bitstream version).
Comment 5 Tim-Philipp Müller 2010-12-29 10:56:02 UTC
Looks like it has been moved here:
http://ia700307.us.archive.org/20/items/Patent_Absurdity/Patent_Absurdity_HQ_768kbit.ogv
Comment 6 Sebastian Dröge (slomo) 2011-05-30 10:54:29 UTC
Seems that this is fixed now, the offset/offset_end that is generated by oggdemux looks ok now.