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

Tim-Philipp Müller t.i.m at zen.co.uk
Sat May 2 21:48:29 CEST 2009


On Sat, 2009-05-02 at 19:07 +0200, Nicolas Bertrand wrote:

Hi,

> I am writing an application who needs to make a snasphot of an
> image videostream when a button is clicked. The application is written
> in python and I use pygst.
> 
> I need a confirmation for the way to do that : I use the
> add_buffer_probe  function 'padded' on a bin.  And with the callback
> associated to  add_buffer_probe i save to a jpeg file and deactivate the
> probe
> 
> Is this the correct way to handle that kind  of feature with pytgon gst ?

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?

Cheers
 -Tim






More information about the gstreamer-devel mailing list