[gst-devel] Grabbing snapshots out of live stream
Arnout Vandecappelle
arnout at mind.be
Wed Jan 14 09:15:17 CET 2009
On Monday 12 January 2009 21:24:20 OB Lutz wrote:
> gst-launch -vvv gstrtpbin name=rtpbin \
> tcpserversrc host=127.0.0.1 port=1235 ! videoparse
> format=YUY2 width=404 height=424 framerate=20/1 bpp=16 ! \ tee
> name=splitter splitter. ! queue ! typefind ! pngenc snapshot=false !
> multifilesink sync=false preroll-queue-len=20 location=/tmp/output.png -vvv
> splitter.
You don't need a typefind in your pipeline. It fails to find the type of the
raw video (there's nothing in a raw video stream to indicate what type it is)
and therefore it doesn't negotiate its caps with the pngenc.
To debug a pipeline, it's convenient to strip it down until something works,
that way you can find out which element causes the problem. You can replace
a video source with videotestsrc and the sink with fakesink. That way,
you'll find out that
videotestsrc ! typefind ! pngenc snapshot=false ! fakesink
doesn't work, while
videotestsrc ! pngenc snapshot=false ! fakesink
does work.
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