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 755486 - glimagesink: doesn't support YUY2 properly
glimagesink: doesn't support YUY2 properly
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal normal
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-23 17:48 UTC by Aleix Conchillo Flaqué
Modified: 2015-12-02 11:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glimagesink yuy2 is bad (20.39 KB, image/png)
2015-09-23 17:48 UTC, Aleix Conchillo Flaqué
Details
GST_DEBUG=*:6 with videotestsrc num-buffers=1 (417.74 KB, application/gzip)
2015-09-23 18:07 UTC, Aleix Conchillo Flaqué
Details
Chainsaw effect with YUY2 (10.95 KB, image/png)
2015-09-23 18:19 UTC, Nicolas Dufresne (ndufresne)
Details

Description Aleix Conchillo Flaqué 2015-09-23 17:48:28 UTC
Created attachment 311966 [details]
glimagesink yuy2 is bad

It's seems glimagesink is not drawing YUY2 frames nicely.

Just type this pipeline:

gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2 ! glimagesink

See attached image.
Comment 1 Aleix Conchillo Flaqué 2015-09-23 18:07:21 UTC
Created attachment 311968 [details]
GST_DEBUG=*:6 with videotestsrc num-buffers=1
Comment 2 Nicolas Dufresne (ndufresne) 2015-09-23 18:19:57 UTC
Created attachment 311971 [details]
Chainsaw effect with YUY2
Comment 3 Aleix Conchillo Flaqué 2015-09-23 18:23:33 UTC
This is what I see in the logs.

_gl_mem_init: new GL texture context:<glcontextglx0> memory:0x7f10bc011090 format:6 dimensions:320x240 stride:640 size:153600

Format 6 is GST_VIDEO_GL_TEXTURE_TYPE_RG
Comment 4 Matthew Waters (ystreet00) 2015-12-02 11:56:28 UTC
commit c8099e6e7184cab84118570156c009b7a29d34f4
Author: Matthew Waters <matthew@centricular.com>
Date:   Wed Dec 2 22:42:39 2015 +1100

    glcolorconvert: improve the YUY2/UYVY->RGBA conversion shader
    
    Don't offset the y-axis.  We only need to offset on the x-axis.
    
    Removes a sawtooth pattern on horizontal and vertical edges.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755486