gst-plugins-good: multipartmux extensions
Sebastian Dröge
sebastian at centricular.com
Sat Mar 12 09:41:53 UTC 2016
On Fr, 2016-03-11 at 20:34 +0100, Robin Haberkorn wrote:
>
> Furthermore I implemented support for adding custom HTTP header fields
> generated from metadata associated with GstBuffers. Ie. I have
> defined a GstMeta implementation that allows you to add some
> GstStructure to a GstBuffer as meta data. If the name of the structure
> is "http-headers" (could be easily changed of course), one HTTP header
> is added per GstStructure field with a gst_value_serialize'd value.
There's a custom event for similar purposes in souphttpsrc. Maybe those
two things can be merged somehow, the advantage of the event is that
it's independent of buffers (and IIRC it was a sticky event).
> My question is whether you are willing and interested to merge all of
> those changes back into the upstream project.
> If yes, it makes sense to keep my modifications as minimal as possible;
> keeping the type and short name of the modified element etc.
That certainly sounds interesting, as long as it is done in a backwards
compatible way :)
Note that multipart is not HTTP specific though, so let's try to keep
things somehow generic.
> My extensions add additional multipart HTTP headers. Firstly, an
> X-Timestamp header is added with the buffer timestamp. This is useful
> in our case if the pipeline clock is a real-time system clock, so we
> can put individual frames recorded using a live source and muxed
> using multipartmux into chronological relation with other frames
> (possibly recorded by independant live sources).
Independent of the other discussion, keep in mind that such header
requires you to somehow synchronize the clocks of the senders and
receivers and compensate for different clock rates of their own clocks.
At least if it is to be used for synchronization of the media.
You could add another header that gives information about which clock
is actually used here though (see e.g. RFC7273 which has that for RTP).
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160312/6eb909a3/attachment.sig>
More information about the gstreamer-devel
mailing list