Totem fails to decode h264/h265 when gstreamer vaapi is installed.
IDK why does it happen not only in totem but every application that uses gstreamer on AMDGPU platform.
GPU:AMD Radeon(driver:amdgpu; radeonsi)
OS Fedora 29
Gnome version 3.30
Platform: Wayland
Log for totem using G_MESSAGES_DEBUG=all
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.750: watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:47.755: watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:47.755: watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:47.755: watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:47.755: watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:47.755: watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:47.756: watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:47.756: watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
(totem:12873): dconf-DEBUG: 11:42:48.194: watch_fast: "/org/gnome/Totem/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:48.195: watch_established: "/org/gnome/Totem/" (establishing: 1)
(totem:12873): Gtk-DEBUG: 11:42:48.213: Connecting to session manager
(totem:12873): dconf-DEBUG: 11:42:48.221: watch_fast: "/org/gnome/Totem/" (establishing: 0, active: 1)
(totem:12873): dconf-DEBUG: 11:42:48.221: watch_fast: "/org/gnome/desktop/lockdown/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:48.222: watch_established: "/org/gnome/desktop/lockdown/" (establishing: 1)
(totem:12873): Gdk-WARNING **: 11:42:48.343: Native Windows taller than 65535 pixels are not supported
(totem:12873): dconf-DEBUG: 11:42:48.384: watch_fast: "/org/gnome/desktop/thumbnailers/" (establishing: 0, active: 0)
(totem:12873): dconf-DEBUG: 11:42:48.385: watch_established: "/org/gnome/desktop/thumbnailers/" (establishing: 1)
(totem:12873): GLib-GIO-DEBUG: 11:42:48.388: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(totem:12873): dconf-DEBUG: 11:42:48.434: change_fast
(totem:12873): dconf-DEBUG: 11:42:48.434: change_notify: /org/gnome/Totem/subtitle-encoding
(totem:12873): dconf-DEBUG: 11:42:48.434: watch_fast: "/org/gnome/Totem/" (establishing: 0, active: 2)
(totem:12873): dconf-DEBUG: 11:42:48.434: unwatch_fast: "/org/gnome/Totem/" (active: 3, establishing: 0)
(totem:12873): dconf-DEBUG: 11:42:48.434: watch_fast: "/org/gnome/Totem/" (establishing: 0, active: 2)
(totem:12873): dconf-DEBUG: 11:42:48.457: watch_fast: "/org/gnome/Totem/" (establishing: 0, active: 3)
(totem:12873): dconf-DEBUG: 11:42:48.465: watch_fast: "/org/gnome/desktop/lockdown/" (establishing: 0, active: 1)
(totem:12873): Totem-DEBUG: 11:42:48.465: TotemGrilo: Pausing videos thumbnailing
(totem:12873): Totem-DEBUG: 11:42:48.470: totem_playlist_add_one_mrl (): Videofilename.mp4 (null) (null) (null) false
(totem:12873): Totem-DEBUG: 11:42:48.531: Not enabling offline save, as 'file:///pathtofilename.mp4' already in '/home/akarshan/Videos'
(totem:12873): Totem-DEBUG: 11:42:48.531: TotemGrilo: Pausing videos thumbnailing
(totem:12873): Gtk-WARNING **: 11:42:48.852: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)
** (totem:12873): DEBUG: 11:42:48.933: Setting rotation to '0.000000'
** (totem:12873): DEBUG: 11:42:48.933: Setting rotation to '0.000000'
** (totem:12873): DEBUG: 11:42:48.934: Setting rotation to '0.000000'
** (totem:12873): DEBUG: 11:42:48.934: Setting rotation to '0.000000'
** (totem:12873): DEBUG: 11:42:48.934: Setting rotation to '0.000000'
** (totem:12873): DEBUG: 11:42:48.935: Setting rotation to '0.000000'
^C
And it is so weird that the same video file plays perfectly file with gst-launch-1.0:
$gst-launch-1.0 playbin uri=file:///pathtofilename.mp4
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapipostproc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";
mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the -global-isel-abort option: may only occur zero or one times!
Got context from element 'vaapipostproc0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayEGL\)\ vaapidisplayegl0";
Redistribute latency...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock
Logs are from Wayland.
Edited by Akarshan Biswas