[gst-devel] How to save a stream buffer to a file ?

Nicolas Bertrand nico at inattendu.org
Sun May 3 01:14:58 CEST 2009


>
> It's generally much easier to figure out what exactly you're doing and
> whether that's a good way of doing things or not with the exact code at
> hand. Any chance you could post some of your code that captures the
> essence of your app, ideally as a stand-alone program?
>   

Hi Find attached a standalone python program.
This program display a stream ( videotestsec) and allow also making a
snapshot of th stream ( Capture button) . the image result is in
snapshot.jpg


The snapshot is made via method capture in class my_gst. Is that the
correct way to that kind of operation ; i.e. storibng an image from
stream in file.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot.py
Type: text/x-python
Size: 5117 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090503/bb73ae12/attachment.py>


More information about the gstreamer-devel mailing list