How to set transparency

Stefan Sauer ensonic at hora-obscura.de
Wed Apr 4 06:55:13 PDT 2012


On 04/03/2012 05:30 PM, kususe wrote:
> How do you code the part of pipeline to fix the transparency
> (sink_1::alpha=0.7)?
>
> "gst-launch-0.10 filesrc location=/home/boss/Scrivania/test_dc/geo.png !
> pngdec ! imagefreeze ! ffmpegcolorspace ! videomixer name=mix
> sink_1::alpha=0.7 ! ffmpegcolorspace ! xvimagesink filesrc
> location=video.webm ! matroskademux ! vp8dec ! mix. 
get a reference to the sink_1 pad and set the gobject property called
"alpha" to 0.7.
the alternative would be the python equiv of
gst_child_proxy_set(mix, "sink_1::alpha", 0.7, NULL);

Stefan
> I tried using alpha element, but it doesn't work. 
> I tried to use videoboxelement but the transparency setted up with alpha
> doesn't work. 
> I tried saving a transparent image, but it doesn't work. 
>
> Have you got any suggestion?
> Thanks in advance, 
> K.
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-set-transparency-tp4529144p4529144.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list