Gstreamer Alpha channel on black
Andrew Silby
asilby at macrodata.co.uk
Mon Oct 10 19:36:00 UTC 2016
Hi, I'm trying to produce a video stream which is transparent if the image
is black. I have a video feed which produces a black feed if there is no
input from a video capture device. I would like to overlay this onto another
video stream but not show the image if it is black.
I thought I would be able to do this by using the alpha plugin on the black
video source specifying:
alpha method=custom target-r=0 target-g=0 target-b=0
but this doesn't work.
The closest I can get is:
alpha method=custom target-r=0 target-b=0 target-g=0 black-sensitivity=128
white-sensitivity=0
This will make the black areas transparent but also anything slightly dark
transparent as well. I really just want the black areas to be transparent
Any help greatly appreciated.
Thanks,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161010/98749864/attachment.html>
More information about the gstreamer-devel
mailing list