[Bug 669305] flacenc ! matroskamux generates errors from non time segments
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Feb 3 07:09:22 PST 2012
https://bugzilla.gnome.org/show_bug.cgi?id=669305
GStreamer | gst-plugins-good | git
--- Comment #5 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> 2012-02-03 15:09:18 UTC ---
I think one could make quite a hack there:
We assume seeking will be used only for getting back near the start.
We keep a copy of the first kilobyte or so of what we write first.
When asked to seek in bytes at offset OFFS near the start, we ask to seek in
time to 0 (which should seek in bytes to 0), then write OFFS bytes from the
data we remembered at start.
That should ensure that we only output time segments, and that we can still
mimic a seek in bytes to near the start. We only need to remember enough bytes
to always rewrite from 0 (I see three seeks here, all to under 30 bytes offset,
which should be constrained by the header format).
It's hacky but should work. Right ? :)
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list