[gst-devel] Grabbing snapshots out of live stream

Arnout Vandecappelle arnout at mind.be
Mon Jan 12 16:33:15 CET 2009


On Thursday 08 January 2009 22:48:04 OB Lutz wrote:
> I'm trying to write a pipeline that will take video in from a network
> source, do some transcoding, and send it out to a network sink. No problem
> there. But I need to be able to get preview snapshots of the stream as its
> running, either on demand, or just have it continuously dump out frames to
> a known file periodically. I'm doing some experiments using a v4lsrc and
> xvimagesink as my fake network source and sink for now. I've found the
> 'tee' block that looks promising to split my stream into 2, so one can go
> on its way to the network sink, and the other could maybe write to a file,
> but all my experiments have only shown me a single frame in my xvimagesink.
> Am I going down the right path trying to use 'tee' or is there some other
> set of blocks I should use?

 You probably need to insert a queue behind the tee.  Otherwise you can get 
deadlocks because all sinks try to synchronize from the same thread.

 Failing that, can you post the gst-launch command you're using?

 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933




More information about the gstreamer-devel mailing list