Getting data from buffer to pass to another function/process outside of Gstreamer
nicolas at ndufresne.ca
Fri May 19 08:10:27 UTC 2017
Le jeudi 18 mai 2017 à 12:45 -0700, dayunbao a écrit :
> 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
> 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
> program for some separate image processing. I think this should be
> relatively easy, and I've read about the identity plug in, and its
> 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
You could also use tee and appsink:
v42lsrc ! tee name=t
t. ! queue ! jpegenc ! ...
t. ! queue ! appsink
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: This is a digitally signed message part
More information about the gstreamer-devel