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

[BUG] Hardware decoder vaapi not working (black screen) #411

Open
gmipf opened this issue Sep 18, 2024 · 22 comments
Open

[BUG] Hardware decoder vaapi not working (black screen) #411

gmipf opened this issue Sep 18, 2024 · 22 comments

Comments

@gmipf
Copy link

gmipf commented Sep 18, 2024

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

[I] Logging to file /home/gmipf/.var/app/io.github.streetpea.Chiaki4deck/data/Chiaki/Chiaki/log/chiaki_session_2024-09-18_13-56-12-407407.log
[I] Chiaki Version 1.8.1
[I] Trying to use hardware decoder "vaapi"
[AVHWDeviceContext @ 0x5590adf8a940] libva: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
[I] Using hardware decoder "vaapi" with pix_fmt=vaapi
[I] ChiakiOpusEncoder initialized
Could not connect to Steam Deck...Steam Deck native gyro & haptics offline
[I] Steam Deck not found ... Steam Deck native features disabled


[I] Starting session request for PS4

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

[I] Chiaki Version 1.8.1
[I] Trying to use hardware decoder "vaapi"
[I] Using hardware decoder "vaapi" with pix_fmt=vaapi
[I] ChiakiOpusEncoder initialized
Could not connect to Steam Deck...Steam Deck native gyro & haptics offline
[I] Steam Deck not found ... Steam Deck native features disabled


[I] Starting session request for PS4

It seems to load the driver? But still a black screen.

Desktop (please complete the following information):

  • OS: Fedora KDE Spin
  • Version 40
  • Device MacBookPro8,3
  • chiaki-ng Version 1.8.1

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

@gmipf
Copy link
Author

gmipf commented Sep 18, 2024

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 LIBVA_DRIVERS_PATH=/usr/lib64/dri LIBVA_DRIVER_NAME=i965 also didn't work.

@streetpea
Copy link
Owner

@gmipf have you tried the appimage on the releases page?

@gmipf
Copy link
Author

gmipf commented Sep 18, 2024

@streetpea with AppImage still the same.

Here the steps to compile chiaki on Fedora 40

Install following packages:
sudo dnf install git cmake qt5-qtmultimedia-devel qt5-qtsvg-devel ffmpeg-devel opus-devel SDL2-devel protobuf-devel

For the ffmpeg-devel package you need to first setup the rpmfusion repo: https://rpmfusion.org/Howto/Multimedia

You also need openssl1.1-devel, which isn't available anymore in Fedora 40 and later. Install it with the following command:

sudo dnf install --releasever=39 openssl1.1-devel

After that run the following to remove the cached package meta data from older Fedora 39:

sudo dnf clean all

Here the steps to compile and install chiaki:

git clone https://git.sr.ht/~thestr4ng3r/chiaki
cd chiaki
git submodule update --init
mkdir build && cd build
cmake ..
make
sudo make install

Skip sudo make install if you don't want an installation.

@streetpea
Copy link
Owner

streetpea commented Sep 18, 2024

@gmipf if you want to use the Libva-Intel-driver with flatpak you need to install it with

flatpak install --system -y org.freedesktop.Platform.VAAPI.Intel

@gmipf
Copy link
Author

gmipf commented Sep 18, 2024

Installed runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/24.08, still blackscreen in flatpak.

@gmipf
Copy link
Author

gmipf commented Sep 18, 2024

While removing I have noticed the following:

flatpak uninstall org.freedesktop.Platform.VAAPI.Intel
Similar installed refs found for ?org.freedesktop.Platform.VAAPI.Intel?:

   1) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/23.08 (system)
   2) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/24.08 (system)
   3) All of the above

Which do you want to use (0 to abort)? [0-3]: 3
Info: applications using the extension org.freedesktop.Platform.VAAPI.Intel branch 23.08:
   org.ferdium.Ferdium, io.github.streetpea.Chiaki4deck
Really remove? [y/n]: n


        ID                                            Branch          Op
 1. [-] org.freedesktop.Platform.VAAPI.Intel          24.08           r

Uninstall complete.

It seems the vaapi driver was already there as a dependency for chiaki-ng.

@streetpea
Copy link
Owner

@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

@gmipf
Copy link
Author

gmipf commented Sep 18, 2024

[I] Chiaki Version 1.8.1
[I] Trying to use hardware decoder "vaapi"
[AVHWDeviceContext @ 0x55bd6e438600] Failed to initialise VAAPI connection: -1 (unknown libva error).
[E] Failed to create hwdevice context

The stream can't even start when specifying --env=LIBVA_DRIVERS_PATH=/usr/lib/dri/intel-vaapi-driver or --env=LIBVA_DRIVERS_PATH=/usr/lib/dri/

@streetpea
Copy link
Owner

@nowrep do you have an idea of what’s happening here?

@streetpea
Copy link
Owner

streetpea commented Sep 19, 2024

@gmipf my bad this is the correct path: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver so for path use /usr/lib/x86_64-linux-gnu/dri

@gmipf
Copy link
Author

gmipf commented Sep 19, 2024

@streetpea Still same error, stream cannot start. I think that path is wrong too. On Fedora the driver files are here:

$ sudo ls  /usr/lib64/dri/
armada-drm_dri.so  ili9225_dri.so      komeda_dri.so         panel-mipi-dbi_dri.so  rockchip_dri.so   v3d_dri.so
crocus_dri.so      ili9341_dri.so      lima_dri.so           panfrost_dri.so        rzg2l-du_dri.so   vc4_dri.so
etnaviv_dri.so     ili9486_dri.so      mali-dp_dri.so        panthor_dri.so         ssd130x_dri.so    virtio_gpu_dri.so
exynos_dri.so      imx-dcss_dri.so     mcde_dri.so           pl111_dri.so           st7586_dri.so     virtio_gpu_drv_video.so
gm12u320_dri.so    imx-drm_dri.so      mediatek_dri.so       r300_dri.so            st7735r_dri.so    vmwgfx_dri.so
hdlcd_dri.so       imx-lcdif_dri.so    meson_dri.so          r600_dri.so            sti_dri.so        zink_dri.so
hx8357d_dri.so     ingenic-drm_dri.so  mi0283qt_dri.so       r600_drv_video.so      stm_dri.so        zynqmp-dpsub_dri.so
i915_dri.so        iris_dri.so         msm_dri.so            radeonsi_dri.so        sun4i-drm_dri.so
i965_drv_video.so  kgsl_dri.so         mxsfb-drm_dri.so      radeonsi_drv_video.so  swrast_dri.so
iHD_drv_video.so   kirin_dri.so        nouveau_dri.so        rcar-du_dri.so         tegra_dri.so
ili9163_dri.so     kms_swrast_dri.so   nouveau_drv_video.so  repaper_dri.so         udl_dri.so

But that path still gives the same error.

EDIT:
I want to reminder, iHD_drv_video.so isn't supported by my iGPU, therefore I need to use the older i965_drv_video.so. But I think chiaki-ng always tries to run the newer vaapi driver. The old chiaki does it correctly without specifying the path variable.

@streetpea
Copy link
Owner

streetpea commented Sep 19, 2024

@gmipf you can find the path just run:

flatpak run --devel --command=bash io.github.streetpea.Chiaki4deck

To get into the flatpak environment and then check in there for the so file:

ls -l /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/

but it should be at the path specified if you have installed the driver. It was installed there for me after I ran:

flatpak install --system -y org.freedesktop.Platform.VAAPI.Intel//23.08

maybe you need to use

LIBVA_DRIVERS_PATH="/usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver"

… what happens if you just unset the libva path and just specify the different driver?

@gmipf
Copy link
Author

gmipf commented Sep 19, 2024

$ ls  /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/
i965_drv_video.so  iHD_drv_video.so  lib

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:

$ flatpak run --env=LIBVA_DRIVER_NAME=i965 --env=LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/ io.github.streetpea.Chiaki4deck
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Qt: Session management error: Could not open network socket
chiaki.gui: [libplacebo] Initialized libplacebo v6.338.0-70-gc320f61e-dirty (API v342)
chiaki.gui: [libplacebo] Spent 12.216 ms enumerating instance extensions
chiaki.gui: [libplacebo] Creating vulkan instance with extensions:
chiaki.gui: [libplacebo]     VK_KHR_get_physical_device_properties2
chiaki.gui: [libplacebo]     VK_KHR_surface
chiaki.gui: [libplacebo]     VK_EXT_swapchain_colorspace
chiaki.gui: [libplacebo]     VK_KHR_external_memory_capabilities
chiaki.gui: [libplacebo]     VK_KHR_external_semaphore_capabilities
chiaki.gui: [libplacebo]     VK_KHR_get_surface_capabilities2
chiaki.gui: [libplacebo]     VK_KHR_portability_enumeration
chiaki.gui: [libplacebo]     VK_KHR_xcb_surface
chiaki.gui: [libplacebo]     VK_KHR_surface
chiaki.gui: [libplacebo] Probing for vulkan devices:
chiaki.gui: [libplacebo]     GPU 0: llvmpipe (LLVM 17.0.6, 256 bits) v1.3.289 (software)
chiaki.gui: [libplacebo]            uuid: 6D:65:73:61:32:34:2E:32:2E:31:00:00:00:00:00:00
chiaki.gui: [libplacebo] Vulkan device properties:
chiaki.gui: [libplacebo]     Device Name: llvmpipe (LLVM 17.0.6, 256 bits)
chiaki.gui: [libplacebo]     Device ID: 10005:0
chiaki.gui: [libplacebo]     Device UUID: 6D:65:73:61:32:34:2E:32:2E:31:00:00:00:00:00:00
chiaki.gui: [libplacebo]     Driver version: 1
chiaki.gui: [libplacebo]     API version: 1.3.289
chiaki.gui: [libplacebo] Creating vulkan device with extensions:
chiaki.gui: [libplacebo]     VK_KHR_swapchain
chiaki.gui: [libplacebo]     VK_KHR_push_descriptor
chiaki.gui: [libplacebo]     VK_KHR_external_memory_fd
chiaki.gui: [libplacebo]     VK_EXT_external_memory_dma_buf
chiaki.gui: [libplacebo]     VK_EXT_external_memory_host
chiaki.gui: [libplacebo]     VK_EXT_image_drm_format_modifier
chiaki.gui: [libplacebo] Spent 16.710 ms creating vulkan device
chiaki.gui: [libplacebo] Memory heaps supported by device:
chiaki.gui: [libplacebo]     0: flags 0x1 size   15G
chiaki.gui: [libplacebo] Memory summary:     0 used     0 res     0 alloc, efficiency 100.00%, utilization 100.00%, max page:  993M
chiaki.gui: [libplacebo] shaderc SPIR-V version 1.6 rev 1
chiaki.gui: [libplacebo] Initialized SPIR-V compiler 'shaderc'
chiaki.gui: [libplacebo] GPU information:
chiaki.gui: [libplacebo]     GLSL version: 450 (vulkan)
chiaki.gui: [libplacebo]       max_shmem_size:            32768
chiaki.gui: [libplacebo]       max_group_threads:         1024
chiaki.gui: [libplacebo]       max_group_size[0]:         1024
chiaki.gui: [libplacebo]       max_group_size[1]:         1024
chiaki.gui: [libplacebo]       max_group_size[2]:         1024
chiaki.gui: [libplacebo]       subgroup_size:             8
chiaki.gui: [libplacebo]       min_gather_offset:         -32
chiaki.gui: [libplacebo]       max_gather_offset:         31
chiaki.gui: [libplacebo]     Limits:
chiaki.gui: [libplacebo]       thread_safe:               1
chiaki.gui: [libplacebo]       callbacks:                 1
chiaki.gui: [libplacebo]       max_buf_size:              16669593600
chiaki.gui: [libplacebo]       max_ubo_size:              65536
chiaki.gui: [libplacebo]       max_ssbo_size:             134217728
chiaki.gui: [libplacebo]       max_vbo_size:              16669593600
chiaki.gui: [libplacebo]       max_mapped_size:           16669593600
chiaki.gui: [libplacebo]       max_buffer_texels:         134217728
chiaki.gui: [libplacebo]       align_host_ptr:            4096
chiaki.gui: [libplacebo]       host_cached:               1
chiaki.gui: [libplacebo]       max_tex_1d_dim:            16384
chiaki.gui: [libplacebo]       max_tex_2d_dim:            16384
chiaki.gui: [libplacebo]       max_tex_3d_dim:            4096
chiaki.gui: [libplacebo]       blittable_1d_3d:           1
chiaki.gui: [libplacebo]       buf_transfer:              1
chiaki.gui: [libplacebo]       align_tex_xfer_pitch:      128
chiaki.gui: [libplacebo]       align_tex_xfer_offset:     128
chiaki.gui: [libplacebo]       max_variable_comps:        0
chiaki.gui: [libplacebo]       max_constants:             18446744073709551615
chiaki.gui: [libplacebo]       max_pushc_size:            256
chiaki.gui: [libplacebo]       align_vertex_stride:       1
chiaki.gui: [libplacebo]       max_dispatch[0]:           65535
chiaki.gui: [libplacebo]       max_dispatch[1]:           65535
chiaki.gui: [libplacebo]       max_dispatch[2]:           65535
chiaki.gui: [libplacebo]       fragment_queues:           1
chiaki.gui: [libplacebo]       compute_queues:            1
chiaki.gui: [libplacebo]     External API interop:
chiaki.gui: [libplacebo]       UUID: 6D:65:73:61:32:34:2E:32:2E:31:00:00:00:00:00:00
chiaki.gui: [libplacebo]       PCI: 0000:00:00:0
chiaki.gui: [libplacebo]       buf export caps: 0x9
chiaki.gui: [libplacebo]       buf import caps: 0x19
chiaki.gui: [libplacebo]       tex export caps: 0x9
chiaki.gui: [libplacebo]       tex import caps: 0x19
chiaki.gui: [libplacebo]       sync export caps: 0x0
chiaki.gui: [libplacebo]       sync import caps: 0x0
[I] Discovery failed to bind port 9304, trying one higher
[I] Discovery Service detected new host with id 709E29DF9DDB
chiaki.gui: Updated PSN hosts
chiaki.gui: [libplacebo] Available surface configurations:
chiaki.gui: [libplacebo]     0: VK_FORMAT_B8G8R8A8_SRGB                  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
chiaki.gui: [libplacebo]     1: VK_FORMAT_B8G8R8A8_UNORM                 VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
chiaki.gui: [libplacebo] Picked surface configuration 1: VK_FORMAT_B8G8R8A8_UNORM + VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[I] Logging to file /home/gmipf/.var/app/io.github.streetpea.Chiaki4deck/data/Chiaki/Chiaki/log/chiaki_session_2024-09-19_20-26-47-593593.log
[I] Chiaki Version 1.8.1
[I] Trying to use hardware decoder "vaapi"
[I] Using hardware decoder "vaapi" with pix_fmt=vaapi
[I] ChiakiOpusEncoder initialized
Could not connect to Steam Deck...Steam Deck native gyro & haptics offline
[I] Steam Deck not found ... Steam Deck native features disabled


[I] Starting session request for PS4
[I] Trying to request session from 192.168.60.126:9295
[I] Connected to 192.168.60.126:9295
[I] Sending session request
[I] Session request successful
[I] Starting ctrl
[I] Ctrl connected to 192.168.60.126:9295
[I] Sending ctrl request
[I] Ctrl received http header as response
[I] Ctrl received ctrl request http response
[I] Ctrl got Server Type: 0
[I] Ctrl connected
[I] CTRL RECEIVED
[I] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[I]      0 00 00 00 01 00 05 00 00 b1                      .........       
[I] Ctrl received Login message: success
[I] CTRL RECEIVED
[I] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[I]      0 00 00 00 02 00 06 00 00 dc 71                   .........q      
[W] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[W]      0 00 01                                           ..              
[I] CTRL RECEIVED
[I] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[I]      0 00 00 00 11 00 33 00 00 0f 29 b5 ae 8d f0 23 44 .....3...)....#D
[I]     10 ba d6 cd 50 d1 b9 38 e4 77                      ...P..8.w       
[W] Received presumably invalid Session Id:
[W] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[W]      0 10 49 6e 76 61 6c 69 64 53 65 73 73 69 6f 6e 49 .InvalidSessionI
[W]     10 64                                              d               
[E] Received Session Id is too short
[I] Ctrl set fallback session Id 16084fgirHP3FaVsV3BapYVPTahB/MgN3PBM/ftvaTQrMUgmbxxE++jSBlX/G4mDgdvu7
[I] Starting Senkusha
[I] Takion connecting (version 7)
[I] Takion enabled Don't Fragment Bit
[I] Takion sent init
[I] CTRL RECEIVED
[I] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[I]      0 00 00 00 02 00 16 00 00 7a 42                   ........zB      
[I] Takion received init ack with remote tag 0x2983a912, outbound streams: 0x64, inbound streams: 0x64
[I] Takion sent cookie
[I] Takion received cookie ack
[I] Takion connected
[I] Setting takion versions
[I] Senkusha successfully set takion version
[I] Senkusha sending big
[I] Senkusha successfully received bang
[I] Senkusha Ping Test with count 10 starting
[I] Senkusha enabled echo
[I] Senkusha sending Ping 0 of test index 0
[E] Senkusha pong receive timeout
[E] Senkusha failed to receive pong
[I] Senkusha sending Ping 1 of test index 0
[I] Senkusha received Pong, RTT = 13.302 ms
[I] Senkusha sending Ping 2 of test index 0
[I] Senkusha received Pong, RTT = 13.808 ms
[I] Senkusha sending Ping 3 of test index 0
[I] Senkusha received Pong, RTT = 11.007 ms
[I] Senkusha sending Ping 4 of test index 0
[I] Senkusha received Pong, RTT = 13.531 ms
[I] Senkusha sending Ping 5 of test index 0
[I] Senkusha received Pong, RTT = 11.411 ms
[I] Senkusha sending Ping 6 of test index 0
[I] Senkusha received Pong, RTT = 7.677 ms
[I] Senkusha sending Ping 7 of test index 0
[I] Senkusha received Pong, RTT = 15.941 ms
[I] Senkusha sending Ping 8 of test index 0
[I] Senkusha received Pong, RTT = 7.637 ms
[I] Senkusha sending Ping 9 of test index 0
[I] Senkusha received Pong, RTT = 7.456 ms
[I] Senkusha disabled echo
[I] Senkusha determined average RTT = 11.307 ms
[I] Senkusha starting MTU in test with min 576, max 1454, retries 3, timeout 56 ms
[I] Senkusha MTU request 1454 (min 576, max 1454), id 1, attempt 0
[I] Senkusha MTU 1454 timeout
[I] Senkusha MTU request 1454 (min 576, max 1454), id 2, attempt 1
[I] Senkusha MTU 1454 success
[I] Senkusha determined inbound MTU 1454
[I] Senkusha starting MTU out test with min 576, max 1454, retries 3, timeout 56 ms
[I] Senkusha sent initial client MTU command
[I] Senkusha received expected Client MTU Command
[I] Senkusha MTU 1454 out ping attempt 0
[I] Senkusha MTU ping 1454 success
[I] Senkusha determined outbound MTU 1454
[I] Senkusha sending final Client MTU Command
[I] Senkusha is disconnecting
[I] Senkusha closed takion
[I] Senkusha completed successfully
[I] Takion connecting (version 9)
[I] Takion sent init
[I] Takion received init ack with remote tag 0x1b148ce2, outbound streams: 0x64, inbound streams: 0x64
[I] Takion sent cookie
[I] Takion received cookie ack
[I] Takion connected
[I] StreamConnection sending big
[I] BANG received
[I] StreamConnection successfully received bang
[I] Crypt has become available. Re-checking MACs of 0 packets
[D] StreamConnection received audio header:
[D] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[D]      0 02 10 00 00 bb 80 00 00 01 e0 00 00 00 01       ..............  
[I] Audio Header:
[I]   channels = 2
[I]   bits = 16
[I]   rate = 48000
[I]   frame size = 480
[I]   unknown = 1
[I] ChiakiOpusDecoder initialized
[I] Audio Device 'Auto' opened with 2 channels @ 48000 Hz, buffer size 5760
[I] Video Profiles:
[I]   0: 1280x720
[I] StreamConnection successfully received streaminfo
[W] Increasing received packets to reduce hit on stream quality
[I] Switched to profile 0, resolution: 1280x720
[h264 @ 0x557ad5f07c00] no frame!
[E] Failed to push frame: Invalid data found when processing input
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[W] Failed to map AVFrame to Placebo frame!
[I] CTRL RECEIVED
[I] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[I]      0 00 00 00 00 00 fe 00 00                         ........        
[I] Ctrl received Heartbeat, sending reply
[W] Failed to map AVFrame to Placebo frame!
[I] CTRL RECEIVED
[I] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[I]      0 00 00 00 08 00 10 00 00 65 c3 42 67 17 f0 1a 83 ........e.Bg....
[W] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[W]      0 ff ff ff d4 00 00 00 64                         .......d        
[I] StreamConnection is disconnecting
[I] StreamConnection sending Disconnect
[I] StreamConnection was requested to stop
[I] StreamConnection closed takion
[I] StreamConnection completed successfully
[I] Ctrl requested to stop
[I] Ctrl stopped
[I] Session has quit
chiaki.gui: Failed to map AVFrame to Placebo frame!
[I] Discovery failed to bind port 9304, trying one higher
[I] Discovery failed to bind port 9305, trying one higher
[I] Discovery Service detected new host with id 709E29DF9DDB

@streetpea
Copy link
Owner

@gmipf that driver might not support zero copy for vaapi

@gmipf
Copy link
Author

gmipf commented Sep 19, 2024

@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.

@nowrep
Copy link
Contributor

nowrep commented Sep 19, 2024

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?

@streetpea
Copy link
Owner

@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:

cp "${HOME}/.var/app/io.github.streetpea.Chiaki4deck/config/Chiaki/Chiaki.conf" "${HOME}/.config/Chiaki/Chiaki.conf"

@gmipf
Copy link
Author

gmipf commented Sep 19, 2024

@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.

@streetpea
Copy link
Owner

streetpea commented Sep 19, 2024

It’s possibly the bitstream parsing code that improves image quality. On poor cpus it can increase cpu utilization

@streetpea
Copy link
Owner

streetpea commented Sep 19, 2024

@gmipf can you try to lower the bitrate to 15000 (that’s the default for Chiaki for 1080p) and see if that helps

@gmipf
Copy link
Author

gmipf commented Sep 19, 2024

I'm already running at 720p and bitrate 10000 on both apps.

@streetpea
Copy link
Owner

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.

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

3 participants