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

Tim-Philipp Müller t.i.m at zen.co.uk
Mon May 4 20:26:08 CEST 2009


On Mon, 2009-05-04 at 12:00 +0200, Nicolas Bertrand wrote:

> Actually my question is to know if for save to file a single gstreamer
> buffer, in an asynchronous way, is better to made this with the 
> add_buffer_probe/remove_buffer_probe methods or use a connect/disconnect
> 'handoff" signal  ?  Is there differences ?  a more  datasafe mode ? 
> gstreamerly mode ?

Both more or less do the same thing. If you want to do things
asynhronously you could post an application message conaining the buffer
on the bus in the callback and then handle it later in your application
(didn't check if that fits your use case. just thought I'd mention it).

Cheers
 -Tim






More information about the gstreamer-devel mailing list