[gst-devel] Make transparent a specific color inside a video

Jan Schmidt thaytan at noraisin.net
Mon Nov 2 02:36:20 CET 2009


On Fri, 2009-10-30 at 12:25 +0100, megabug wrote:
> 
> Hi,
> 
> 
> 
> I have two videos:
> 1 - An animated "title" text video (letters moving around with a
> complex schema) with a black background.
> 2 - Another video taken with a camera
> 
> 
> 
> Using libpigment, I tried to put the video 1 over video 2 but the
> black background of titles is not transparent and covers the second
> video. If I try to change alpha value on the whole video the black
> will be mixed with the second video making it darker.

You can use the 'alpha' element to perform 'green-screening',
selectively converting a given color range to transparency. It would be
better/more efficient overall to use a format for the titles that
supports an alpha channel already, however - such as PNG files.

Regards,
Jan.

> 
> 
> 
> Is it possible to make transparent a only part of the video with a
> specific color (the black on the first video in my case)?
> 
> 
> 
> -- 
> megabug
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-- 
Jan Schmidt <thaytan at noraisin.net>





More information about the gstreamer-devel mailing list