Discussion:
[Bug 797312] New: gstreamer won't play x265 videos
"GStreamer" (GNOME Bugzilla)
2018-10-20 15:57:51 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Bug ID: 797312
Summary: gstreamer won't play x265 videos
Classification: Platform
Product: GStreamer
Version: 1.14.x
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@ginac.de
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---

Created attachment 373979
--> https://bugzilla.gnome.org/attachment.cgi?id=373979&action=edit
Matroska file with x265 video where gst-launch-1.0 fails

The attached 1s video plays fine with other players.

$ gst-launch-1.0 playbin uri=file:///data/scratch/das_boot.mkv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapisink0': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0";
Redistribute latency...
Got context from element 'playsink': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0";
Redistribute latency...
ERROR: from element
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
Internal data stream error.
Additional debug info:
gstmultiqueue.c(2069): gst_multi_queue_loop ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 16:34:06 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Nicolas Dufresne (ndufresne) <***@ndufresne.ca> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |***@gmail.com,
| |***@ndufresne.ca,
| |***@igalia.com
Component|gst-plugins-bad |gstreamer-vaapi

--- Comment #1 from Nicolas Dufresne (ndufresne) <***@ndufresne.ca> ---
I have tested this file withough vaapi support, and it works, so I'm moving the
ticket component to gstreamer-vaapi. Then I have tested on 1.14.1 as shipped by
Fedora (Intel i965 driver for Intel(R) Skylake - 2.1.0) and it also worked.

Then I tested on HW without HEVC support (Intel i965 driver for Intel(R)
Ivybridge Mobile - 2.1.0) and the software fallback (FFMPEG) did work as
expected. Which means I cannot reproduce the error you are seeing.

Please provide additional information such as VAAPI support details, as
reported by vainfo utility, and confirm which version of GStreamer you are
testing. Ideally, test against newer libva and vaapi driver, as the issue may
already been resolved.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 16:34:39 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Nicolas Dufresne (ndufresne) <***@ndufresne.ca> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|gstreamer won't play x265 |vaapi: GStreamer fails to
|videos |play HEVC video
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 18:33:13 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #2 from Richard B. Kreckel <***@ginac.de> ---
(In reply to Nicolas Dufresne (ndufresne) from comment #1)
Post by "GStreamer" (GNOME Bugzilla)
Please provide additional information such as VAAPI support details, as
reported by vainfo utility, and confirm which version of GStreamer you are
testing. Ideally, test against newer libva and vaapi driver, as the issue
may already been resolved.
This is libva-2.3.0 and GStreamer 1.14.4, both from Debian/testing:

$ gst-launch-1.0 --version
gst-launch-1.0 version 1.14.4
GStreamer 1.14.4
http://packages.qa.debian.org/gstreamer1.0
$ vainfo
libva info: VA-API version 1.3.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_2
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.3 (libva 2.2.0)
vainfo: Driver version: Mesa Gallium driver 18.1.7 for Radeon RX 560 Series
(POLARIS11, DRM 3.26.0, 4.18.0-2-amd64, LLVM 6.0.1)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 21:45:44 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|vaapi: GStreamer fails to |vaapih265dec: [radeon]
|play HEVC video |GStreamer fails to play
| |HEVC video
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 21:49:44 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #3 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
As Nicolas said, the stream plays with my kabylake using intel-vaapi-driver and
this is the first time I heard of someone playing HEVC with the gallium state
tracker for radeon.

Please upload the log with GST_DEBUG=*:4,vaapi*:5
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 22:03:23 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #4 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 373980
--> https://bugzilla.gnome.org/attachment.cgi?id=373980&action=edit
gst-launch debug output with GST_DEBUG=*:4,vaapi*:5
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-20 23:19:38 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Nicolas Dufresne (ndufresne) <***@ndufresne.ca> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-21 07:27:31 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #5 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
Comment on attachment 373980
--> https://bugzilla.gnome.org/attachment.cgi?id=373980
gst-launch debug output with GST_DEBUG=*:4,vaapi*:5

vaapi logs didn't show up. I guess the correct debug format is
GST_DEBUG="vaapi*:5,*:4"
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-21 07:27:46 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-21 09:27:20 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #6 from Richard B. Kreckel <***@ginac.de> ---
(In reply to Víctor Manuel Jáquez Leal from comment #5)
Post by "GStreamer" (GNOME Bugzilla)
vaapi logs didn't show up. I guess the correct debug format is
GST_DEBUG="vaapi*:5,*:4"
Uhm, that didn't change the log.
I'm going to upload the log with GST_DEBUG="*:5" now.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-21 09:30:59 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #7 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 373982
--> https://bugzilla.gnome.org/attachment.cgi?id=373982&action=edit
gst-launch debug output with GST_DEBUG=*:5
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-23 06:33:21 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Julien Isorce <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-23 06:34:18 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #8 from Julien Isorce <***@gmail.com> ---
Can you try with GST_DEBUG=*vaapi*:6 ?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-23 17:13:48 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #9 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 374014
--> https://bugzilla.gnome.org/attachment.cgi?id=374014&action=edit
gst-launch debug output with GST_DEBUG=*vaapi*:6

Setting GST_DEBUG to *vaapi*:6 doesn't produce more lines of debug output.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-24 03:40:56 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Julien Isorce <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW

--- Comment #10 from Julien Isorce <***@gmail.com> ---
Looks like a problem with gstvaapisink which does not restrict the caps to what
it really supports.

Try playbin video-sink="videoconvert ! xvimagesink"

Try also try gst-launch-1.0 filesrc location=file:///data/scratch/das_boot.mkv
! matroskademux ! h265parse ! vaapidecode ! vaapipostproc !
"video/x-raw(memory:VASurface), format=(string)RGBA" ! vaapisink
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-24 10:45:20 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #11 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
0:00:00.456349780 [335m28462[00m 0x7fe30803ea30 [37mDEBUG [00m [00m
vaapi gstvaapisurface.c:376:gst_vaapi_surface_new_full:[00m size
992x574, format NV12, flags 0x00000000
0:00:00.456630547 [335m28462[00m 0x7fe30803ea30 [37mDEBUG [00m [00m
vaapi gstvaapisurface.c:213:gst_vaapi_surface_create_full:[00m surface
0xe
0:00:00.456646808 [335m28462[00m 0x7fe30803ea30 [37mDEBUG [00m [00m
vaapi gstvaapiutils.c:130:vaapi_check_status:[00m vaRenderPicture():
invalid VASurfaceID
0:00:00.456653059 [335m28462[00m 0x7fe30803ea30 [31;01mERROR [00m [00m
vaapipostproc
gstvaapipostproc.c:872:gst_vaapipostproc_process_vpp:<vaapipostproc0>[00m
failed to apply VPP filters (error 2)

IIUC the problem is in vaapipostroc: it is unable to apply a filter in a
surface.

Another test would be to export the environment variable
GST_VAAPI_DISABLE_VPP=1
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 06:22:46 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #12 from Richard B. Kreckel <***@ginac.de> ---
(In reply to Julien Isorce from comment #10)
Post by "GStreamer" (GNOME Bugzilla)
Try also try gst-launch-1.0 filesrc
location=file:///data/scratch/das_boot.mkv ! matroskademux ! h265parse !
vaapidecode ! vaapipostproc ! "video/x-raw(memory:VASurface),
format=(string)RGBA" ! vaapisink
No success.
WARNING: erroneous pipeline: no element "vaapidecode"
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 06:26:37 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #13 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 374034
--> https://bugzilla.gnome.org/attachment.cgi?id=374034&action=edit
gst-launch playbin video-sink="videoconvert ! xvimagesink" debug output with
GST_DEBUG=vaapi*:5,*:4

That didn't work either.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 06:30:18 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #14 from Richard B. Kreckel <***@ginac.de> ---
(In reply to Víctor Manuel Jáquez Leal from comment #11)
Another test would be to export the environment variabl GST_VAAPI_DISABLE_VPP=1
Success: That does play it!
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 15:39:27 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #15 from Víctor Manuel Jáquez Leal <***@igalia.com> ---
We would need to debug what's happening with the posprocessor.

One last log (without GST_VAAPI_DISABLE_VPP!) exporting the variable
LIBVA_TRACE=~/vpp-failure

With it we would get the logs from VAAPI (but not for the driver, sadly)

And post it here :)

Thanks!
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 17:43:27 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #16 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 374037
--> https://bugzilla.gnome.org/attachment.cgi?id=374037&action=edit
vpp-failure.174006.thd-0x00001980
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 17:43:57 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #17 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 374038
--> https://bugzilla.gnome.org/attachment.cgi?id=374038&action=edit
/home/rbk/vpp-failure.174006.thd-0x00001983
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 17:44:33 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #18 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 374039
--> https://bugzilla.gnome.org/attachment.cgi?id=374039&action=edit
vpp-failure.174006.thd-0x00001984
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 17:44:52 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

--- Comment #19 from Richard B. Kreckel <***@ginac.de> ---
Created attachment 374040
--> https://bugzilla.gnome.org/attachment.cgi?id=374040&action=edit
vpp-failure.174006.thd-0x0000199b
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-26 08:42:15 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

Víctor Manuel Jáquez Leal <***@igalia.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-03 15:56:18 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=797312

GStreamer system administrator <***@gstreamer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |OBSOLETE

--- Comment #20 from GStreamer system administrator <***@gstreamer.net> ---
-- 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/gstreamer-vaapi/issues/110.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
Loading...