Grabbing an image frame from a running pipeline on demand

Nicolas Dufresne nicolas.dufresne at gmail.com
Wed Jun 8 17:57:04 UTC 2016


Le mercredi 08 juin 2016 à 17:02 +0100, Charlie Turner a écrit :
> 
> v4l2src device=/dev/video0 num-buffers=1 ! jpegenc ! filesink
> location="thumbnail.jpg"

You could:

v4l2src ! tee name=t
  t. ! queue ! some-pipeline
  t. ! queue ! fakesink

And another pipeline
  
  appsrc ! jpegenc ! filesink ...

At random point, you can read "last-sample" property from the fakesink,
and push that sample to the appsrc (followed with an eos).

Nicolas


More information about the gstreamer-devel mailing list