Andrew Silby
2016-10-10 19:36:00 UTC
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
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