How to manipulate a alpha element

Hello Everyone,
im using gstreamer with ruby and i mix two video streams.
the mixing is working fine now.

now i want to add aplha support !

first i create the element this works fine,too …

@alpha = Gst::ElementFactory.make(‘alpha’)
@pipeline.add @alpha

then i want to set the alpha mehtod on custom and this is not working …

@alpha.set_property(“method”, “3”)
@alpha.method = “3”

i think the method/function aplha#method expect a “Gst::ElementAlpha”
ENUM element and i think this dosent exists in the bingings …

right ?
is there a hint how i can set @alpha.method = “3” ?

gst-inspect aplha output for the mehtod function
################################################
method : How the alpha channels should be created
flags: readable, writable
Enum “GstAlphaMethod” Default: 0, “set” Current:
0, “set”
(0): set - Set/adjust alpha
channel
(1): green - Chroma Key green
(2): blue - Chroma Key blue
(3): custom - Chroma Key on
target_r/g/b
#######################################################################

thanks ahead
& best regards

Philipp

Hi,

In [email protected]
“[ruby-gnome2-devel-en] how to manipulate a alpha element” on Fri, 6
Jun 2008 15:31:45 +0200,
Philipp G. [email protected] wrote:

then i want to set the alpha mehtod on custom and this is not working …

@alpha.set_property(“method”, “3”)
@alpha.method = “3”

@alpha.set_property(“method”, 3)

Thanks,

kou

Kouhei S. wrote:

Hi,

In [email protected]
“[ruby-gnome2-devel-en] how to manipulate a alpha element” on Fri, 6
Jun 2008 15:31:45 +0200,
Philipp G. [email protected] wrote:

then i want to set the alpha mehtod on custom and this is not working …

@alpha.set_property(“method”, “3”)
@alpha.method = “3”

@alpha.set_property(“method”, 3)

Thanks,

kou

Hello kou,

its working, sorry it was a stupid fault … :wink:

thank you!

Philipp