[gst-devel] Kaapow

Jens Persson xerxes2 at gmail.com
Fri Dec 29 19:52:55 CET 2006


Transparency doesn't work here.
http://enlisy.org/~xerxes2/files/ticasto_logo.png

And I already found both the alpha and videobox elements for adjusting 
the alpha and some other stuff.

Julien Moutte wrote:
> You can use a transparent PNG it will respect transparency. Moreover you
> can add the alpha element before videomixer and change the alpha
> parameter to make the png transparent globally.
>
> gst-launch-0.10 filesrc location=/home/dolphy/fluendo.png ! pngdec !
> ffmpegcolorspace ! alpha alpha=0.50 !  videomixer name=mixer !
> ffmpegcolorspace ! ximagesink videotestsrc ! ffmpegcolorspace ! mixer.
>
> Julien.
>
> On Fri, 2006-12-29 at 19:28 +0100, Jens Persson wrote:
>   
>> That worked perfectly mr Moutte. And while you're at it can you please 
>> tell us how to get it transparent too?
>>
>> greets Jens
>>
>> Julien Moutte wrote:
>>     
>>> You don't need freeze, look at this example launch line.
>>>
>>>
>>> gst-launch-0.10 filesrc location=/home/dolphy/Desktop/ROCK1.png !
>>> pngdec ! ffmpegcolorspace ! videomixer name=mixer ! ffmpegcolorspace !
>>> ximagesink videotestsrc ! ffmpegcolorspace ! mixer.
>>>
>>>
>>> ATTENTION: the order is important in the gst-launch line because you
>>> can't control the Z order of the streams connected to the mixer. In your
>>> application it's different. Enjoy..
>>>
>>> Julien.
>>>
>>> On Fri, 2006-12-29 at 15:13 +0000, Adam Lofts wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>> I'd like to announce a project I've had over the winter. Kaapow is a
>>>> little python application for playing with webcams. It will display
>>>> you webcam feed and allow you to apply effects to the feed (currently
>>>> limited to the *tv elements, see below). The url is
>>>> http://adam.uwcs.co.uk/kaapow. This should be fun for people with
>>>> cameras built into laptops for example. 
>>>>
>>>> So the next step I want to take is to add an "overlay" effect to put a
>>>> picture of a gorilla on top of the camera feed, so one can look at
>>>> oneself being a gorilla (i.e. some of the image would be transparent).
>>>> Unfortunately this is not as simple as sticking in an edgetv element
>>>> and a colorspace. My gut reaction was this: 
>>>>
>>>> [ filesrc ! pngdec ! freeze ! ffmpegcolorspace ]
>>>> [ feed going in ! ffmpegcolorspace ]
>>>>
>>>> both into 
>>>>
>>>> [ videomixer ! feed going out ]
>>>>
>>>> I do get one frame of output from this, with the image on top but then
>>>> playing stops. I've also tried playing with pad probes to eat up EOS
>>>> events but still no success. 
>>>>
>>>> Are there any example of doing this?
>>>>
>>>> Thanks,
>>>> Adam
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>     
>>>>         
>>> -------------------------------------------------------------------------
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>>   
>>>       
>
>   





More information about the gstreamer-devel mailing list