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
on 06.06.2008 15:31
on 07.06.2008 02:33
Hi, In <86fd08ad80486e47eb30c1e96f1cd2d5@ruby-forum.com> "[ruby-gnome2-devel-en] how to manipulate a alpha element" on Fri, 6 Jun 2008 15:31:45 +0200, Philipp Goetzinger <ruby-forum-incoming@andreas-s.net> 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
on 07.06.2008 10:52
Kouhei Sutou wrote: > Hi, > > In <86fd08ad80486e47eb30c1e96f1cd2d5@ruby-forum.com> > "[ruby-gnome2-devel-en] how to manipulate a alpha element" on Fri, 6 > Jun 2008 15:31:45 +0200, > Philipp Goetzinger <ruby-forum-incoming@andreas-s.net> 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 .. ;-) thank you! Philipp