How to set transparency

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set transparency

kususe
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.

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.


Reply | Threaded
Open this post in threaded view
|

Re: How to set transparency

Holger Kaelberer
Hi,

On 04/03/2012 05:30 PM, kususe wrote:
> 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.

try adding a ffmpegcolorspace between vp8dec and mix.

Holger
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to set transparency

kususe
yet done, but still nothing.

K.
Reply | Threaded
Open this post in threaded view
|

Re: How to set transparency

Holger Kaelberer

On 04/04/2012 10:14 AM, kususe wrote:
> yet done, but still nothing.

This is what works for me:

gst-launch-0.10 filesrc location=1.png ! pngdec ! imagefreeze ! ffmpegcolorspace ! videomixer
name=mix sink_1::alpha=0.7 ! ffmpegcolorspace ! xvimagesink filesrc
location=A_Digital_Media_Primer_For_Geeks-480p.webm ! matroskademux ! vp8dec ! ffmpegcolorspace ! mix.

Holger
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to set transparency

kususe
Yes, me too.
But I'm posting about coding this pipeline in Python.
Transparency works, but how do you code this parameter in Python?
Reply | Threaded
Open this post in threaded view
|

Re: How to set transparency

Stefan Sauer
In reply to this post by kususe
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
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to set transparency

kususe
Thank you Stafan.
I'll look for the equivalent even if at this first look it doesn't sound exist.
K.