streaming video metadata

Nicolas Dufresne nicolas.dufresne at collabora.com
Sat Jan 3 08:54:36 PST 2015


Le 2014-12-31 04:32, frank82 a écrit :
> Thank you for the answer, it seems to be very useful for my purpose. I have
> some problem to understand how GstRtpBuffer could be used, can you share an
> example just to understand how to use it?
> thank you again.
>

Simply allocate GstRtpBuffer on the stack, and then use 
gst_rtp_buffer_map/unmap() methods.

function(buffer)
{
   GstRtpBuffer rtp_buf;

   gst_rtp_buffer_map (buffer, GST_MAP_READWRITE, &rtp_buf);

   ...

   at this point you can call method like 
gst_rtp_buffer_add_extension_onebyte_header () to modify the
   RTP buffer. When done, you must unmap the buffer otherwise the buffer 
will be left unusable.

   ...

   gst_rtp_buffer_unmap (&rtp_buf)l
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150103/d19a3e51/attachment.html>


More information about the gstreamer-devel mailing list