-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
[BUG] Hardware decoder vaapi not working (black screen) #411
Comments
I have tried further, this time old chiaki v2.2.0 AppImage. The same problem, vaapi wasn't working. Then I have tried compiling it myself on Fedora 40. My compiled binary worked out of the box with vaapi decoding. After that I also compiled chiaki-ng (non flatpak) but there vaapi still wasn't working. Running it with |
@gmipf have you tried the appimage on the releases page? |
@streetpea with AppImage still the same. Here the steps to compile chiaki on Fedora 40 Install following packages: For the You also need openssl1.1-devel, which isn't available anymore in Fedora 40 and later. Install it with the following command:
After that run the following to remove the cached package meta data from older Fedora 39:
Here the steps to compile and install chiaki:
Skip |
@gmipf if you want to use the Libva-Intel-driver with flatpak you need to install it with
|
Installed |
While removing I have noticed the following:
It seems the vaapi driver was already there as a dependency for chiaki-ng. |
@gmipf it looks like that driver is installed at /usr/lib/dri/intel-vaapi-driver according to this https://github.com/flatpak/freedesktop-sdk-images/blob/2037f7b8367f9354598d6560c8cce04d69a1140a/org.freedesktop.Platform.VAAPI.Intel.json.in#L12 so I would update your libva drivers path to point there |
The stream can't even start when specifying |
@nowrep do you have an idea of what’s happening here? |
@gmipf my bad this is the correct path: |
@streetpea Still same error, stream cannot start. I think that path is wrong too. On Fedora the driver files are here:
But that path still gives the same error. EDIT: |
@gmipf you can find the path just run:
To get into the flatpak environment and then check in there for the so file:
but it should be at the path specified if you have installed the driver. It was installed there for me after I ran:
maybe you need to use
… what happens if you just unset the libva path and just specify the different driver? |
Specifying with that path start the stream again, whether specifying the i965 driver or not, I always get the black screen. Specifiying the driver without the path is also the same. Here the output with with i965 specified:
|
@gmipf that driver might not support zero copy for vaapi |
@streetpea OK, I'm good now since the old chiaki is working fine after compiling. But if you need further tests I can try to help. |
I've seen some issues with vulkan - vaapi / dmabuf interop issues on Intel driver, but have no idea what's wrong. Perhaps we can just disable zerocopy when first import fails? |
@gmipf try this build that turns off zero decode for vaapi and see if it works given you set the necessary vars for your system (not the flatpak ones but the system ones since this is an appimage) https://github.com/streetpea/chiaki-ng/actions/runs/10948065338/artifacts/1955172869 ... also to copy the settings from the flatpak first open up the appimage (after making it executable) and then run:
|
@streetpea It is working now, didn't specified any path, just run the appimage after copying the config. But it seems to be sloppier than old chiaki. In chiaki-ng the cpu utilization goes very high, over 70%. On old chiaki it stays below 20%. Render quality is set to fast in chiaki-ng already. |
It’s possibly the bitstream parsing code that improves image quality. On poor cpus it can increase cpu utilization |
@gmipf can you try to lower the bitrate to 15000 (that’s the default for Chiaki for 1080p) and see if that helps |
I'm already running at 720p and bitrate 10000 on both apps. |
Libplacebo might just be too much for your pc then. You might just want to stick with Chiaki which is maintaining support for legacy platforms. |
Describe the bug
When choosing the vaapi (and vulkan) decoder in the settings, the screen is black, only sound is streamed. Disabling the decoding works but is very slow.
Debug Log
Terminal output when executing:
flatpak run io.github.streetpea.Chiaki4deck
It defaults to the newer vaapi driver intel-media-driver (iHD_drv_video.so), which I have not installed since my iGPU is too old and not supported.
Then I have tried to run with the old driver libva-intel-driver which works everywhere else with my iGPU:
flatpak run --env=LIBVA_DRIVER_NAME=i965 io.github.streetpea.Chiaki4deck
It seems to load the driver? But still a black screen.
Desktop (please complete the following information):
Additional context
CPU is Intel i7-2860QM with HD3000 iGPU. (AMD GPU disabled)
To Reproduce
Start a remote stream on a PS4.
Expected behavior
Should show an image
The text was updated successfully, but these errors were encountered: