Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Play try to use vaapi for nvidia, but it is impossible. #10174

Closed
AnterCreeper opened this issue Oct 30, 2023 · 1 comment
Closed

Remote Play try to use vaapi for nvidia, but it is impossible. #10174

AnterCreeper opened this issue Oct 30, 2023 · 1 comment

Comments

@AnterCreeper
Copy link

Your system information

  • Steam client version (build number or date):
    latest
  • Distribution (e.g. Ubuntu):
    debian bullseye
  • Opted into Steam client beta?: [Yes/No]
    No
  • Have you checked for system updates?: [Yes/No]
    Yes
  • Steam Logs: [generate by running this command in a terminal tar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs]

[2023-10-30 21:39:48][88182.429029] >>> Switching video stream from NONE to Desktop_MovieStream
[2023-10-30 21:39:48][88182.572573] NVENC - Couldn't create encoding session: 15
[2023-10-30 21:39:48][88182.581002] CLIENT: Queued 110 ms, clearing audio stream
[2023-10-30 21:39:48][88182.604969] CGameStreamVideoStageVAAPI: Reinitializing 1874x1014 at 15000 Kbit/s and 59.78 FPS with quality 0
[2023-10-30 21:39:48][88182.605199] ffmpeg verbose: libva: VA-API version 1.17.0
[2023-10-30 21:39:48][88182.605219] ffmpeg verbose: libva: Trying to open /usr/lib/i386-linux-gnu/dri/nvidia_drv_video.so
[2023-10-30 21:39:48][88182.605246] ffmpeg verbose: libva: Found init function __vaDriverInit_1_17
[2023-10-30 21:39:48][88182.605402] ffmpeg error: libva: /usr/lib/i386-linux-gnu/dri/nvidia_drv_video.so init failed
[2023-10-30 21:39:48][88182.605411] ffmpeg verbose: libva: va_openDriver() returns 18
[2023-10-30 21:39:48][88182.605418] ffmpeg error: Failed to initialise VAAPI connection: 18 (invalid parameter).
[2023-10-30 21:39:48][88182.605527] CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error
[2023-10-30 21:39:48][88182.606483] Detected 12 logical processors, using 4 threads
[2023-10-30 21:39:48][88182.606505] Configuring encoder: [threads=4][width=1874][height=1014][preset=superfast][tune=zerolatency]
[2023-10-30 21:39:48][88182.610392] >>> Capture method set to Desktop OpenGL NV12 + libx264 main (4 threads)
[2023-10-30 21:39:48][88182.610873] >>> Capture resolution set to 1874x1014
[2023-10-30 21:39:48][88182.610890] >>> Capture colorspace set to BT.601 limited range

  • GPU: Nvidia/Intel/AMD
    Intel & Nvidia

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a [Github Gist]

Remote Play failed to load nvenc, and try to use vaapi for nvidia, but it is impossible.
Besides need a function to force choose video encode hardware, so i will use intel integrated gpu to do encoding jobs (I selected in the setting, but not work and keep trying load nvidia vaapi driver)

@kisak-valve
Copy link
Member

Hello @AnterCreeper, a non-fatal fallback chain trying to use vaapi as a secondary hardware based solution, and then continues to fallback to a CPU based encoder is not a bug. In theory something like elFarto/nvidia-vaapi-driver#116 could grow support for this path, but that's something that would need to improve in the video driver.

It looks like you need to have the libnvidia-encode1 and libnvidia-encode1:i386 system packages installed to support NVENC on Debian. If adding those packages doesn't help, then report the broken hardware encode path to your distro's package maintainer(s) for the NVIDIA video driver.

There's a feature request at #7215 tracking the request to try to be able to use a different GPU from the GPU rendering the game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants