Gstreamer Alpha channel on black

Sebastian Dröge sebastian at centricular.com
Thu Oct 13 08:17:16 UTC 2016


On Mon, 2016-10-10 at 20:36 +0100, Andrew Silby wrote:
> 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.

Please file a bug about this here
  https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

The problem is most likely here that alpha is using the hue for color-
keying, which does not work for "colorless" values between white and
black.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 967 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161013/abba5863/attachment.sig>


More information about the gstreamer-devel mailing list