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 764930 - videomixer can not set opaque texture when its formats is AYUV.
videomixer can not set opaque texture when its formats is AYUV.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-04-12 07:56 UTC by anthony
Modified: 2018-05-06 13:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
image source (5.55 KB, image/jpeg)
2016-04-12 09:50 UTC, anthony
Details
image result (4.30 KB, image/png)
2016-04-12 09:51 UTC, anthony
Details

Description anthony 2016-04-12 07:56:05 UTC
When you have 2 inputs in AYUV format go to videomixer, when you make a texture opaque, this one is never completely opaque.
Exemple in pipeline follow:

gst-launch-1.0 videotestsrc pattern=4 ! "video/x-raw, width=(int)426, height=(int)478, format=(string)AYUV" ! videomixer background=2 sink_0::xpos=800 sink_0::ypos=200 sink_1::zorder=2 sink_0::zorder=1 sink_1::alpha=1.0 name=videomixer ! videoconvert ! xvimagesink videotestsrc pattern=2 ! videoscale ! videoconvert ! "video/x-raw, width=(int)1280, height=(int)720, format=(string)AYUV" ! videomixer.

In this exemple, when have a black texture or videomixer set opaque (sink_1::alpha=1.0) but in the result whe can see a block red in background.
Comment 1 Tim-Philipp Müller 2016-04-12 09:08:59 UTC
Not sure what I'm supposed to see?

The above pipeline seems to show solid black for me.

With sink_1::alpha=0.98 I can just about make out the rectangle.

Also, you should probably move to compositor to see if it still happens there, I don't think anyone is going to fix anything non-trivial in videomixer.
Comment 2 Tim-Philipp Müller 2016-04-12 09:46:04 UTC
Hexdump of pixels shows mostly ff 12 80 80 with some ff 11 80 81.
Comment 3 anthony 2016-04-12 09:50:51 UTC
Created attachment 325779 [details]
image source
Comment 4 anthony 2016-04-12 09:51:19 UTC
Created attachment 325780 [details]
image result
Comment 5 anthony 2016-04-12 09:53:02 UTC
I made another test where I replaced a black texture from videotestsrc by an image created on gimp.

pipeline exemple:
gst-launch-1.0 videotestsrc pattern=4 ! "video/x-raw, width=(int)426, height=(int)478, format=(string)AYUV" ! videomixer background=2 sink_0::xpos=800 sink_0::ypos=200 sink_1::zorder=2 sink_0::zorder=1 sink_1::alpha=1.0 name=videomixer ! videoconvert ! xvimagesink filesrc location="test_color.jpeg" ! jpegdec ! imagefreeze ! videoscale ! videoconvert ! "video/x-raw, width=(int)1280, height=(int)720, format=(string)AYUV" ! videomixer.

You can found in attachment the image created on gimp and the result image.
Comment 6 Tim-Philipp Müller 2018-05-06 13:10:54 UTC
Sorry no one ever looked at this in more detail.

videomixer has been superseded by compositor/glvideomixer now.

Please re-open this bug or open a new one if the issue still applies with recent gstreamer (>= 1.14) and these elements.