After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766060 - alpha: doesn't correctly work with black or white in custom mode
alpha: doesn't correctly work with black or white in custom mode
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.8.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 773314 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-05-06 12:59 UTC by Andreas Frisch
Modified: 2018-11-03 15:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Frisch 2016-05-06 12:59:12 UTC
reference command - replace yellow bar in test pattern 0 with circles from other videotestsrc, works as expected: 
gst-launch-1.0 videotestsrc ! alpha method=3 target-r=255 target-g=255 target-b=0 ! videomixer sink_0::zorder=1 sink_1::zorder=0 name=mixer ! videoconvert ! gtksink videotestsrc pattern=11 ! mixer.

test-commands, white stripe is supposed to be transparent, in fact all others are :)
gst-launch-1.0 videotestsrc ! alpha method=3 target-r=255 target-g=255 target-b=255 ! videomixer sink_0::zorder=1 sink_1::zorder=0 name=mixer ! videoconvert ! gtksink videotestsrc pattern=11 ! mixer.

same exact symptom with black:
gst-launch-1.0 videotestsrc ! alpha method=3 target-r=0 target-g=0 target-b=0 ! videomixer sink_0::zorder=1 sink_1::zorder=0 name=mixer ! videoconvert ! gtksink videotestsrc pattern=11 ! mixer.

slomo suggested it may have something to do with alpha's internal HSV conversion. this sounds likely since pure black and white don't have a defined hue value. i'll take a look
Comment 1 Sebastian Dröge (slomo) 2017-05-25 09:41:32 UTC
*** Bug 773314 has been marked as a duplicate of this bug. ***
Comment 2 Sebastian Dröge (slomo) 2017-05-25 09:41:47 UTC
Reason for that is that the color keying works by using the hue. And black (and white, and grey) don't have any hue. A different approach would have to be used here.
Comment 3 GStreamer system administrator 2018-11-03 15:09:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/270.