Capturing image from pipeline

Nicolas Dufresne nicolas.dufresne at collabora.com
Fri Nov 15 06:52:17 PST 2013


Le jeudi 14 novembre 2013 à 23:01 -0800, yoyosuper8 a écrit :
> I was wondering if the following is possible:
> So I'd like to know if it is possible to grab a frame or a "screenshot" from
> a pipeline and save it as a jpeg or png (the format doesn't matter). I just
> want to be able to save take a "screenshot" when I request to take one. Any
> ideas?

On Linux, you can take a screenshot with a simple pipeline like:

gst-launch-1.0 ximagesrc remote=1 num-buffers=1 ! videoconvert ! pngenc ! filesink location=screenshot.png

cheers,
Nicolas

p.s. the remote=1 is required if you have an X11 compositor, might be a bug in ximagesrc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131115/7c82509c/attachment.pgp>


More information about the gstreamer-devel mailing list