Might relate https://github.com/ValveSoftware/steam-for-linux/issues/8731
Corresponding issue for Bazzite: https://github.com/ublue-os/bazzite/issues/2706
Hello @AkazaRenn,
[2025-05-30 21:44:22][1247.650832] Building new pipeline
[2025-05-30 21:44:22][1247.650929] Trying to create an encoder for streaming: [hardware_enabled=true][hardware_suppressed=false]
[2025-05-30 21:44:22][1247.650942] Allowed Codecs: 5,4
[2025-05-30 21:44:22][1247.653158] Created encoder VAAPI for codec 5
[2025-05-30 21:44:22][1247.653183] CGameStreamVideoStageVAAPI: Reinitializing 2194x1234 at 50000 Kbit/s and 59.75 FPS with quality 1
[2025-05-30 21:44:22][1247.656499] ffmpeg verbose: libva: VA-API version 1.22.0
[2025-05-30 21:44:22][1247.656525] ffmpeg verbose: libva: Trying to open /usr/lib/dri/radeonsi_drv_video.so
[2025-05-30 21:44:22][1247.656553] ffmpeg verbose: libva: va_openDriver() returns -1
[2025-05-30 21:44:22][1247.656562] ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
[2025-05-30 21:44:22][1247.657897] CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error
[2025-05-30 21:44:22][1247.657911] Failed to pre-process frame
[2025-05-30 21:44:22][1247.657926] Encoder stage failed [type=5, codec=5]
[2025-05-30 21:44:22][1247.658389] Building new pipeline
[2025-05-30 21:44:22][1247.658441] Trying to create an encoder for streaming: [hardware_enabled=true][hardware_suppressed=false]
[2025-05-30 21:44:22][1247.658450] Allowed Codecs: 5,4
[2025-05-30 21:44:22][1247.658460] Failed encoders: 2/5, 2/4, 4/5, 4/4, 5/5
[2025-05-30 21:44:22][1247.659184] Created encoder VAAPI for codec 4
[2025-05-30 21:44:22][1247.659197] CGameStreamVideoStageVAAPI: Reinitializing 2194x1234 at 50000 Kbit/s and 59.75 FPS with quality 1
[2025-05-30 21:44:22][1247.659385] ffmpeg verbose: libva: VA-API version 1.22.0
[2025-05-30 21:44:22][1247.659409] ffmpeg verbose: libva: Trying to open /usr/lib/dri/radeonsi_drv_video.so
[2025-05-30 21:44:22][1247.659434] ffmpeg verbose: libva: va_openDriver() returns -1
[2025-05-30 21:44:22][1247.659443] ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
[2025-05-30 21:44:22][1247.659571] CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error
[2025-05-30 21:44:22][1247.659580] Failed to pre-process frame
[2025-05-30 21:44:22][1247.676488] Encoder stage failed [type=5, codec=4]
[2025-05-30 21:44:22][1247.676533] Building new pipeline
[2025-05-30 21:44:22][1247.676614] Trying to create an encoder for streaming: [hardware_enabled=true][hardware_suppressed=false]
[2025-05-30 21:44:22][1247.676631] Allowed Codecs: 5,4
[2025-05-30 21:44:22][1247.676641] Failed encoders: 2/5, 2/4, 4/5, 4/4, 5/5, 5/4
[2025-05-30 21:44:22][1247.677569] Created encoder X264 for codec 4
[2025-05-30 21:44:22][1247.677630] Detected 16 logical processors, using 4 threads
[2025-05-30 21:44:22][1247.677639] Configuring encoder: [threads=4][width=2194][height=1234][preset=superfast][tune=zerolatency]
[2025-05-30 21:44:22][1247.681934] Video Encoder Changed
[2025-05-30 21:44:22][1247.684070] >>> Capture method set to Desktop OpenGL NV12 + libx264 main (4 threads)
Steam's trying to use the VAAPI accelerated path and getting an unknown error back from the driver before falling back to x264. I'd see if there's a 32 bit vainfo available to use as a test case and mention the issue to your distro's package maintainer(s) for mesa and/or libva.
@kisak-valve thank you for taking a look! I've created an issue for Bazzite and will transfer your opinions there. As for the 32 bit version of vainfo I haven't found a proper way to install it yet. I'll try to get it working and update here.
I've built the 32 bit vainfo and tested it:
deck@Steam:/var/home/deck/Downloads$ file vainfo
vainfo: ELF 32-bit LSB executable, Intel i386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=96f514ba61d4e12d6533e9eca45e4adade75ad8a, for GNU/Linux 3.2.0, not stripped
deck@Steam:/var/home/deck/Downloads$ ./vainfo
Trying display: wayland
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
@kisak-valve that seems matching your suspect.
Maybe a bit overreaching, is there a plan to release 64-bit version of Steam on Linux and Windows?
Fixed on Bazzite side
Your system information
Please describe your issue in as much detail as possible:
When streaming via Steam Link, the video is always encoded using libx264, while my system is capable of HEVC encoding. The capability has been verified by
ffmpegusing the following command:vainfooutput:Steps for reproducing this issue:
libx264