Getting data from buffer to pass to another function/process outside of Gstreamer

dayunbao dayunbao at
Thu May 18 19:45:34 UTC 2017

Hi all,

I have a pipeline that basically looks like this:

v4l2src -> videorate -> jpegenc -> queue -> jifmux -> multifilesink

I'm capturing a frame once a second from a web cam, and saving is as a JPEG. 
I've also added a probe to the source pad of the JPEG encoder, so whenever
the buffer is pushed downstream I can have a function called to do
something.  What I'd also like to do is copy the data from the buffer
/before it is encoded by the JPEG encoder/ so I can pass it off to another
program for some separate image processing.  I think this should be
relatively easy, and I've read about the identity plug in, and its dump
function, as well as the GSTBuffer's gst_buffer_copy_deep () function, but
I'm not sure what is the best way to do this.  Does anyone have any


View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list