Skip to content

Hardware decoding not working on Wayland #22

@vista-

Description

@vista-

Hey folks,

Thanks for putting this Flatpak together. I've been trying to get hardware decoding working on my setup, without much success. I'm running Fedora 34 (although it shouldn't matter that much in case of a Flatpak-packaged software) on a laptop with an 8th gen Intel processor, running sway (Wayland-based DE) -- ordinarily, I have no issues with hardware decoding, both when using media players (say, mpv) or when playing videos in a browser, but I couldn't get it working with the Steam Link app.

I also tried building a Flatpak of this PR: #20, which bumps the libva version up to 2.11.0 (the version of the lib that's installed on my system) without any luck. Any further troubleshooting/debugging suggestions are more than welcome!

You can find some (hopefully) helpful output down here:

$ vainfo
libva info: VA-API version 1.11.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.11 (libva 2.11.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.1.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
$ flatpak run com.valvesoftware.SteamLink
[...]
INFO: ffmpeg verbose: Opened VA display via X11 display :99.0.
INFO: ffmpeg verbose: libva: VA-API version 1.11.0
INFO: ffmpeg error: libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
INFO: ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
INFO: CVAAPIAccel: av_hwdevice_ctx_create() failed
INFO: libavcodec software decoding with 4 threads
INFO: ffmpeg verbose: Reinit context to 1920x1088, pix_fmt: yuv420p
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions