how to extract video data from gstbuffer in gstreamer-1.0

Tim-Philipp Müller t.i.m at zen.co.uk
Sat Nov 10 05:29:26 PST 2012


On Fri, 2012-11-09 at 23:20 -0800, Raju wrote:

Hi,

> I am a newbi in gstreamer plugin development. I am developing plugin for
> gstreamer 1.0 I am not able to extract video data from gstbuffer. Can
> anybody help me out with this? Thanks in advance

Something like:

   GstMapInfo map;

   gst_buffer_map (buffer, &map, GST_MAP_READ);
   gst_util_dump_mem ((const guchar *) map.data, map.size);
   gst_buffer_unmap (buffer, &map);


We should probably add something about that to the docs somewhere :)

 Cheers
  -Tim



More information about the gstreamer-devel mailing list