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 355595 - multifdsink burst modes have problems with ogg
multifdsink burst modes have problems with ogg
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 0.10.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-12 15:32 UTC by Michael Smith
Modified: 2006-12-17 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for time-based burst modes (945 bytes, patch)
2006-09-12 15:33 UTC, Michael Smith
rejected Details | Review
Patch that also fixes up docs in multifdsink (10.60 KB, patch)
2006-09-12 16:59 UTC, Michael Smith
committed Details | Review
Avoid out-of-order timestamps from oggmux (1.78 KB, patch)
2006-09-18 10:54 UTC, Michael Smith
committed Details | Review

Description Michael Smith 2006-09-12 15:32:00 UTC
When using time-based burst modes in multifdsink, they don't work properly for ogg.

Ogg buffers do not have monotonically increasing timestamps (because the timestamps that monotonically increase, in ogg's case, are timestamp + duration).

When find_limits tries to find the difference in timestamps, negative values are (because it's using unsigned arithmetic) seen as large positive values, so are greater than time_min.

So, we need to cast some of these to signed values; GstClockTimeDiff.
Comment 1 Michael Smith 2006-09-12 15:33:02 UTC
Created attachment 72621 [details] [review]
Patch for time-based burst modes

This works for me, but hasn't been heavily tested.
Comment 2 Michael Smith 2006-09-12 16:59:49 UTC
Created attachment 72625 [details] [review]
Patch that also fixes up docs in multifdsink

No functional changes, just extensive docs fixups (mostly typos)
Comment 3 Michael Smith 2006-09-18 10:18:41 UTC
Committed the docs patch without the timestamp parts.
Comment 4 Michael Smith 2006-09-18 10:53:19 UTC
Wim didn't like the cast patch.

Instead, he suggested changing oggmux to not generate out-of-order timestamps.

The patch I'll attach soon does this by storing a 'last_ts' for the most recently pushed buffer, and setting the ts of the buffer being pushed to this if it has a ts less than last_ts.
Comment 5 Michael Smith 2006-09-18 10:54:19 UTC
Created attachment 72971 [details] [review]
Avoid out-of-order timestamps from oggmux
Comment 6 Michael Smith 2006-09-18 10:59:27 UTC
Oggmux patch committed, fixes this problem.