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 797005 - vaapi decode + glimagesink with DMABuf results in scrambled output
vaapi decode + glimagesink with DMABuf results in scrambled output
Status: RESOLVED DUPLICATE of bug 796822
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
1.14.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-08-21 23:17 UTC by Nico Galoppo
Modified: 2018-08-22 10:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glsinkimage output screenshot (981.93 KB, image/png)
2018-08-21 23:17 UTC, Nico Galoppo
Details

Description Nico Galoppo 2018-08-21 23:17:46 UTC
Created attachment 373420 [details]
glsinkimage output screenshot

Now the following pipeline runs without pipeline errors, but the glimagesink output is scrambled (see attached screenshot): 

gst-launch-1.0 -v souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! vaapidecodebin ! "video/x-raw(memory:DMABuf)" ! glimagesink

It looks like wrong image frame metadata is passed, perhaps incorrect stride. 

The following pipeline runs correctly (not buggy), but since I'm not using a capsfilter, it's going through video/x-raw(meta:GstVideoGLTextureUploadMeta) at the glimagesink. 

gst-launch-1.0 -v souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! vaapidecodebin ! video/x-raw(meta:GstVideoGLTextureUploadMeta) ! glimagesink
Comment 1 Nicolas Dufresne (ndufresne) 2018-08-21 23:50:38 UTC
Until recently, glupload would accept dmabuf caps feature even without EGL support. As a side effect, raw uploader was used, and the image was badly rendered (the image is tiled).

Are you runner on X11 with a recent enough Mesa that supports tiling and compression ?
Comment 2 Nico Galoppo 2018-08-22 01:15:49 UTC
This is on a stock Ubuntu 18.04 Beaver system, with stock distro drivers. I can find out details once I’m back in the office tomorrow.
Comment 3 Nicolas Dufresne (ndufresne) 2018-08-22 01:35:25 UTC
I've asked if you have selected an X11 gnome-shell session (might be Ubuntu default, I have no idea, I'm not using it). This will let me confirm if it's the same bug. For the fix in Ubuntu, you'll have to report to the as we have no influence on that.
Comment 4 Nicolas Dufresne (ndufresne) 2018-08-22 01:39:51 UTC
With confirmation, this will be a duplicate of:

https://bugzilla.gnome.org/show_bug.cgi?id=796822

I've tried backporting it to 1.14, but it didn't work, so someone would have to take a look.
Comment 5 Nico Galoppo 2018-08-22 05:43:18 UTC
Confirmed, this problem goes away when switching to Wayland session.
Comment 6 Nico Galoppo 2018-08-22 05:44:05 UTC
Thanks for the quick response.
Comment 7 Víctor Manuel Jáquez Leal 2018-08-22 10:29:51 UTC

*** This bug has been marked as a duplicate of bug 796822 ***