how to save a screenshot (or a frame) from a camera stream

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Nov 22 12:04:47 PST 2012


On Thu, 2012-11-22 at 09:37 -0800, arzo wrote:

> I am trying to save jpeg (or bmp), while displaying the screen
> simultaneously. 
> 
> I have written following code: 
> (can be compiled after *getting* 
> *compilation: *
> 
> *linker:* 
> 
> *application code: *
> 
> 
> The problem is i get triple repeated images in result (after pressing gtk
> button). 
> I attach example photo here:
> http://img854.imageshack.us/img854/4541/picture1dkz.png 
> 
> Do you have any ideas can I deal with this problem? 

The easiest would be to use the camerabin element (if you are using
GStreamer 1.0), or camerabin2 if you are using the old 0.10 version.

It allows you to take snapshot images or record a video while showing
the video stream at the same time.

Cheers
 -Tim



More information about the gstreamer-devel mailing list