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 738067 - gl: Downloading YUY2 is broken and creates blocky artefacts
gl: Downloading YUY2 is broken and creates blocky artefacts
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal major
: 1.4.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-07 08:41 UTC by Sebastian Dröge (slomo)
Modified: 2014-10-07 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2014-10-07 08:41:28 UTC
Try using " ... ! gleffects ! video/x-raw,format=YUY2 ! xvimagesink". The output looks like wrongly scaled. Using I420 instead looks as expected.

Changing libgstgl to not use RB textures for YUY2 does not help much, in that case the complete output is bright green (not zero-green).
Comment 1 Sebastian Dröge (slomo) 2014-10-07 08:46:19 UTC
frag_RGB_to_YUY2_UYVY uses r and g unconditionally for the output, not sure what effect that has when luminance/alpha textures are used. Might be the reason for the green.
Comment 2 Matthew Waters (ystreet00) 2014-10-07 12:34:09 UTC
commit 9dc1f9be369cd2376568db06cded1eadddec37b6
Author: Matthew Waters <matthew@centricular.com>
Date:   Tue Oct 7 23:04:30 2014 +1100

    glcolorconvert: fix UYVY download green screen

commit 2fb0b28f74600bb5d7ebaa979dc37cfde263d919
Author: Matthew Waters <matthew@centricular.com>
Date:   Tue Oct 7 22:50:22 2014 +1100

    glcolrconvert: fix YUY2 download
    
    - The shader was outputing the wrong values compared with raw
      videotestsrc.
    - deal with the texture edge properly.
    - properly sample the 2x1 rectangle for the u and v values
    - don't double sample the y value

and 1.4
9468f73d40e2e19cee49595c954f25bea7146a39
3dc839d5ed55f340b9ef4e8dff5340726592f5c3