[gst-devel] video buffer sink ?

Robin Gareus robin at gareus.org
Tue Dec 5 20:50:17 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 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()
videotestsrc
! video/x-raw-yuv,format=(fourcc)I420,width=480,heigh...
! 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)

something like:
gst-launch playbin uri=file://... video-sink=fake-sink,name=mysink


TIA,
robin


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFdc07eVUk8U+VK0IRAqN3AJ9pi6j3NS1OSSBr403UNedz2SUKygCfQ+6R
wZ1fxTo+QwhqwqgdGQ/2BTI=
=EYKu
-----END PGP SIGNATURE-----




More information about the gstreamer-devel mailing list