[gst-devel] video buffer sink ?
robin at gareus.org
Tue Dec 5 20:50:17 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
> Hmm, you can connect up a jpegenc ! fakesink, and place a buffer probe
> on the sink pad of the fakesink. You should be able to get the data you
> want from the buffer passed in the probe callback.
thanks that works great!
i start off with a gst_parse_launch()
! fakesink name=mysink
If I want to replace the videtestsrc by some file, I need to specify
the whole decoder chain: eg.
filesrc location=%s ! avidemux ! ffdec_mjpeg ! video/x-raw-yuv ...
this works as well - if the file is a mjpeg-avi :)
Can I use "playbin" or sth. to set up the demux/decoder?
I've tried to create the fake-sink with gst_element_factory_make() and
set the "video-sink" Property of playbin to it - but I do not get any
data when I probe on that pad! I also would prefer to the set up the
whole chain with gst_parse_launch(). (rather than messing with
g_object_set and gst_element_link_pads myself)
gst-launch playbin uri=file://... video-sink=fake-sink,name=mysink
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the gstreamer-devel