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

VA-API device selection ignored in the config (Possible missing card selection code for VA-API) #2521

Open
3 tasks done
olly1240 opened this issue May 11, 2024 · 1 comment

Comments

@olly1240
Copy link

olly1240 commented May 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

Please do not dismiss this issue as misconfiguration or other things, I have spent countless hours debugging and researching this.
As the current nightly (0.23.1.dirty) the config option for the VA-API card selection is ignored and even with a card specified, sunshine will always use the card that pops up using vainfo with no switches.
It seems to me that the code used in video.cpp does not select the correct card pulled from the config.
This means that on multi gpu systems, no other card can be used apart from the one libva selects as default.
This bug cannot be solved by using any env var (DRI_PRIME) or some suggested wrappers such as switcherooctl, since libva does not implement any mechanism for telling it which card to use, apart from selecting the card in vaGetDisplay().
It seems to me that the intended card is not picked in the config and passed to the mentioned function, resulting in the wrong card being selected as the encoder.

Expected Behavior

The specified card should be used to encode using libva.

Additional Context

Here are the relevant discord threads:
https://discord.com/channels/804382334370578482/1211017600344137789
https://discord.com/channels/804382334370578482/1233274689846247537

Related libva thread:
intel/libva#221

In the log section log has been captured using the flag min_log_level=verbose.
Mind that I am certain that the card I selected in the config is the RX6800M, which in my system is set as renderD128, double checked also by looking at the symlinks in /dev/dri/by-path. When this card is selected in vainfo --display drm --device /dev/dri/renderD128 it is called navi22, and sunshine tries to use renoir which is renderD129 and the card used by vainfo when no option are specified

Every time the card capabilities are read, they refer to the wrong card.

I have also looked at the code myself to try and debug this

Host Operating System

Linux

Operating System Version

Arch Linux, 6.8.9-arch1-2

Architecture

64 bit

Sunshine commit or version

g26e0ff8

Package

Linux - AUR (Third Party)

GPU Type

AMD

GPU Model

AMD Radeon RX6800M, AMD Radeon Renoir

GPU Driver/Mesa Version

24.0.6

Capture Method (Linux Only)

KMS

Config

encoder = vaapi
adapter_name = /dev/dri/renderD128
min_threads = 8
av1_mode = 1
channels = 4

Apps

No response

Relevant log output

[min_log_level] -- [verbose]
[channels] -- [4]
[av1_mode] -- [1]
[min_threads] -- [8]
[adapter_name] -- [/dev/dri/renderD128]
[encoder] -- [vaapi]
[2024:05:11:04:50:44]: Info: Sunshine version: 0.23.1.dirty
[2024:05:11:04:50:44]: Info: Found display [wayland-0]
[2024:05:11:04:50:44]: Debug: Available interface: wl_compositor(1) version 6
[2024:05:11:04:50:44]: Debug: Available interface: zwp_tablet_manager_v2(3) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(4) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_decoration_manager_v1(5) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_viewporter(6) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_security_context_manager_v1(7) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_shm(9) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_seat(10) version 9
[2024:05:11:04:50:44]: Debug: Available interface: zwp_pointer_gestures_v1(11) version 3
[2024:05:11:04:50:44]: Debug: Available interface: zwp_pointer_constraints_v1(12) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_relative_pointer_manager_v1(13) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_data_device_manager(14) version 3
[2024:05:11:04:50:44]: Debug: Available interface: zwlr_data_control_manager_v1(15) version 2
[2024:05:11:04:50:44]: Debug: Available interface: wp_cursor_shape_manager_v1(16) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_primary_selection_device_manager_v1(17) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_idle(18) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_idle_inhibit_manager_v1(19) version 1
[2024:05:11:04:50:44]: Debug: Available interface: ext_idle_notifier_v1(20) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_plasma_shell(21) version 8
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_appmenu_manager(22) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_server_decoration_palette_manager(23) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_plasma_virtual_desktop_management(25) version 2
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_shadow_manager(27) version 2
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_dpms_manager(28) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_server_decoration_manager(29) version 1
[2024:05:11:04:50:44]: Debug: Available interface: kde_output_management_v2(30) version 7
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_output_manager_v1(31) version 3
[2024:05:11:04:50:44]: Info: Found interface: zxdg_output_manager_v1(31) version 3
[2024:05:11:04:50:44]: Debug: Available interface: wl_subcompositor(32) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_exporter_v2(33) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_importer_v2(34) version 1
[2024:05:11:04:50:44]: Debug: Available interface: xdg_activation_v1(37) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_content_type_manager_v1(39) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_tearing_control_manager_v1(40) version 1
[2024:05:11:04:50:44]: Debug: Available interface: xdg_toplevel_drag_manager_v1(41) version 1
[2024:05:11:04:50:44]: Debug: Available interface: kde_screen_edge_manager_v1(42) version 1
[2024:05:11:04:50:44]: Debug: Available interface: frog_color_management_factory_v1(43) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_presentation(44) version 1
[2024:05:11:04:50:44]: Debug: Available interface: xdg_wm_base(47) version 6
[2024:05:11:04:50:44]: Debug: Available interface: zwlr_layer_shell_v1(48) version 5
[2024:05:11:04:50:44]: Debug: Available interface: wp_drm_lease_device_v1(50) version 1
[2024:05:11:04:50:44]: Debug: Available interface: kde_output_order_v1(52) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_text_input_manager_v1(53) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_text_input_manager_v2(54) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_text_input_manager_v3(55) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_drm(57) version 2
[2024:05:11:04:50:44]: Debug: Available interface: zwp_linux_dmabuf_v1(58) version 4
[2024:05:11:04:50:44]: Debug: Available interface: kde_output_device_v2(59) version 6
[2024:05:11:04:50:44]: Debug: Available interface: wl_output(60) version 4
[2024:05:11:04:50:44]: Info: Found interface: wl_output(60) version 4
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_blur_manager(61) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_contrast_manager(62) version 2
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_slide_manager(63) version 1
[2024:05:11:04:50:44]: Warning: Missing Wayland wire for wlr-export-dmabuf
[2024:05:11:04:50:44]: Info: /dev/dri/card1 -> amdgpu
[2024:05:11:04:50:44]: Debug: Opening render node: /dev/dri/renderD128
[2024:05:11:04:50:44]: Info: /dev/dri/card2 -> amdgpu
[2024:05:11:04:50:44]: Debug: Opening render node: /dev/dri/renderD129
[2024:05:11:04:50:44]: Debug: crtc(0, 0)
[2024:05:11:04:50:44]: Debug: crtc(2560, 1440)
[2024:05:11:04:50:44]: Debug: plane->possible_crtcs == 1
[2024:05:11:04:50:44]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(73)
[2024:05:11:04:50:44]: Debug: Resolution: 2560x1440: Pitch: 10240: Offset: 0
[2024:05:11:04:50:44]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
[2024:05:11:04:50:44]: Info: Found display [wayland-0]
[2024:05:11:04:50:44]: Info: Found display [wayland-0]
[2024:05:11:04:50:44]: Debug: Available interface: wl_compositor(1) version 6
[2024:05:11:04:50:44]: Debug: Available interface: zwp_tablet_manager_v2(3) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(4) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_decoration_manager_v1(5) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_viewporter(6) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_security_context_manager_v1(7) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_shm(9) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_seat(10) version 9
[2024:05:11:04:50:44]: Debug: Available interface: zwp_pointer_gestures_v1(11) version 3
[2024:05:11:04:50:44]: Debug: Available interface: zwp_pointer_constraints_v1(12) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_relative_pointer_manager_v1(13) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_data_device_manager(14) version 3
[2024:05:11:04:50:44]: Debug: Available interface: zwlr_data_control_manager_v1(15) version 2
[2024:05:11:04:50:44]: Debug: Available interface: wp_cursor_shape_manager_v1(16) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_primary_selection_device_manager_v1(17) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_idle(18) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_idle_inhibit_manager_v1(19) version 1
[2024:05:11:04:50:44]: Debug: Available interface: ext_idle_notifier_v1(20) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_plasma_shell(21) version 8
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_appmenu_manager(22) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_server_decoration_palette_manager(23) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_plasma_virtual_desktop_management(25) version 2
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_shadow_manager(27) version 2
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_dpms_manager(28) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_server_decoration_manager(29) version 1
[2024:05:11:04:50:44]: Debug: Available interface: kde_output_management_v2(30) version 7
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_output_manager_v1(31) version 3
[2024:05:11:04:50:44]: Info: Found interface: zxdg_output_manager_v1(31) version 3
[2024:05:11:04:50:44]: Debug: Available interface: wl_subcompositor(32) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_exporter_v2(33) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zxdg_importer_v2(34) version 1
[2024:05:11:04:50:44]: Debug: Available interface: xdg_activation_v1(37) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_content_type_manager_v1(39) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_tearing_control_manager_v1(40) version 1
[2024:05:11:04:50:44]: Debug: Available interface: xdg_toplevel_drag_manager_v1(41) version 1
[2024:05:11:04:50:44]: Debug: Available interface: kde_screen_edge_manager_v1(42) version 1
[2024:05:11:04:50:44]: Debug: Available interface: frog_color_management_factory_v1(43) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wp_presentation(44) version 1
[2024:05:11:04:50:44]: Debug: Available interface: xdg_wm_base(47) version 6
[2024:05:11:04:50:44]: Debug: Available interface: zwlr_layer_shell_v1(48) version 5
[2024:05:11:04:50:44]: Debug: Available interface: wp_drm_lease_device_v1(50) version 1
[2024:05:11:04:50:44]: Debug: Available interface: kde_output_order_v1(52) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_text_input_manager_v1(53) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_text_input_manager_v2(54) version 1
[2024:05:11:04:50:44]: Debug: Available interface: zwp_text_input_manager_v3(55) version 1
[2024:05:11:04:50:44]: Debug: Available interface: wl_drm(57) version 2
[2024:05:11:04:50:44]: Debug: Available interface: zwp_linux_dmabuf_v1(58) version 4
[2024:05:11:04:50:44]: Debug: Available interface: kde_output_device_v2(59) version 6
[2024:05:11:04:50:44]: Debug: Available interface: wl_output(60) version 4
[2024:05:11:04:50:44]: Info: Found interface: wl_output(60) version 4
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_blur_manager(61) version 1
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_contrast_manager(62) version 2
[2024:05:11:04:50:44]: Debug: Available interface: org_kde_kwin_slide_manager(63) version 1
[2024:05:11:04:50:44]: Info: Resolution: 2560x1440
[2024:05:11:04:50:44]: Info: Offset: 0x0
[2024:05:11:04:50:44]: Info: Logical size: 2560x1440
[2024:05:11:04:50:44]: Info: Name: eDP-1
[2024:05:11:04:50:44]: Info: Found monitor: BOE 0x0A08/0
[2024:05:11:04:50:44]: Info: -------- Start of KMS monitor list --------
[2024:05:11:04:50:44]: Info: Monitor 0 is eDP-1: BOE 0x0A08/0
[2024:05:11:04:50:44]: Verbose: Reduced to name: eDP-1: 1
[2024:05:11:04:50:44]: Info: --------- End of KMS monitor list ---------
[2024:05:11:04:50:44]: Debug: Monitor description
[2024:05:11:04:50:44]: Debug: Resolution: 0x0
[2024:05:11:04:50:44]: Debug: Offset: 0x0
[2024:05:11:04:50:44]: Debug: Monitor description
[2024:05:11:04:50:44]: Debug: Resolution: 0x0
[2024:05:11:04:50:44]: Debug: Offset: 0x0
[2024:05:11:04:50:44]: Debug: Monitor description
[2024:05:11:04:50:44]: Debug: Resolution: 2560x1440
[2024:05:11:04:50:44]: Debug: Offset: 0x0
[2024:05:11:04:50:44]: Debug: Desktop resolution: 2560x1440
[2024:05:11:04:50:44]: Info: Trying encoder [vaapi]
[2024:05:11:04:50:44]: Info: Screencasting with KMS
[2024:05:11:04:50:44]: Info: /dev/dri/card1 -> amdgpu
[2024:05:11:04:50:44]: Debug: Opening render node: /dev/dri/renderD128
[2024:05:11:04:50:44]: Info: /dev/dri/card2 -> amdgpu
[2024:05:11:04:50:44]: Debug: Opening render node: /dev/dri/renderD129
[2024:05:11:04:50:44]: Info: Found monitor for DRM screencasting
[2024:05:11:04:50:44]: Debug: crtc(0, 0)
[2024:05:11:04:50:44]: Debug: crtc(2560, 1440)
[2024:05:11:04:50:44]: Debug: plane->possible_crtcs == 1
[2024:05:11:04:50:44]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(73)
[2024:05:11:04:50:44]: Debug: Resolution: 2560x1440: Pitch: 10240: Offset: 0
[2024:05:11:04:50:44]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
[2024:05:11:04:50:44]: Info: Found connector ID [87]
[2024:05:11:04:50:44]: Info: Found cursor plane [70]
[2024:05:11:04:50:44]: Info: System tray created
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: EGL: [Mesa Project]: version [1.5]
[2024:05:11:04:50:44]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2024:05:11:04:50:44]: Debug: GL: vendor: AMD
[2024:05:11:04:50:44]: Debug: GL: renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 24.0.6-arch1.2
[2024:05:11:04:50:44]: Debug: GL: shader: 4.60
[2024:05:11:04:50:44]: Info: SDR color coding [Rec. 601]
[2024:05:11:04:50:44]: Info: Color depth: 8-bit
[2024:05:11:04:50:44]: Info: Color range: [JPEG]
[2024:05:11:04:50:44]: Debug: vaapi vendor: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x3231564e -> nv12.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x30313050 -> p010le.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x36313050 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x30323449 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x32315659 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x56595559 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x32595559 -> yuyv422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x59565955 -> uyvy422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x30303859 -> gray.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x50343434 -> yuv444p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x50424752 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x41524742 -> bgra.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x41424752 -> rgba.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x42475241 -> argb.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x58524742 -> bgr0.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edd4580] Format 0x58424752 -> rgb0.
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7edd4580] VAAPI driver: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2).
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7edd4580] Driver not found in known nonstandard list, using standard behaviour.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ea590c0] Created surface 0x1.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ea590c0] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ea04a40] Input surface format is nv12.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ea04a40] Using VAAPI profile VAProfileH264High (7).
[2024:05:11:04:50:44]: Error: [h264_vaapi @ 0x5ccb7ea04a40] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2024:05:11:04:50:44]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Funzione non implementata
[2024:05:11:04:50:44]: Debug: vaapi vendor: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x3231564e -> nv12.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x30313050 -> p010le.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x36313050 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x30323449 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x32315659 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x56595559 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x32595559 -> yuyv422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x59565955 -> uyvy422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x30303859 -> gray.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x50343434 -> yuv444p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x50424752 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x41524742 -> bgra.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x41424752 -> rgba.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x42475241 -> argb.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x58524742 -> bgr0.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7edbe080] Format 0x58424752 -> rgb0.
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7edbe080] VAAPI driver: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2).
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7edbe080] Driver not found in known nonstandard list, using standard behaviour.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7eb20dc0] Created surface 0x1.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7eb20dc0] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Input surface format is nv12.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Using VAAPI profile VAProfileH264High (7).
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Using VAAPI entrypoint VAEntrypointEncSlice (6).
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Using VAAPI render target format YUV420 (0x1).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Driver supports RC modes CQP, CBR, VBR.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] RC mode: CBR.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] RC target: 100% of 1000000 bps over 1000 ms.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] RC buffer: 1000000 bits, initial fullness 750000 bits.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] RC framerate: 60/1 (60,00 fps).
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Driver does not report any additional prediction constraints.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Using intra and P-frames (supported references: 1 / 0).
[2024:05:11:04:50:44]: Warning: [h264_vaapi @ 0x5ccb7ede8880] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Using nv12 as format of reconstructed frames.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7edaac80] Created surface 0x3.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7edaac80] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [h264_vaapi @ 0x5ccb7ede8880] Using level 4.2.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Input frame: 1920x1080 (1).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Pick forced IDR-picture to encode next.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Issuing encode for pic 0/0 as type IDR.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] No reference pictures.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Input surface is 0x1.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Recon surface is 0x3.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Allocated output buffer 0x5
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Output buffer is 0x5.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Param buffer (22) is 0x6.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Param buffer (27) is 0x7.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Param buffer (27) is 0x8.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Param buffer (27) is 0x9.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Param buffer (23) is 0xa.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Packed header buffer (1) is 0xb/0xc (328 bits).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Slice 0: 0-67 (68 rows), 0-8159 (8160 blocks).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Param buffer (24) is 0xd.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Sync to pic 0/0 (input surface 0x1).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Output buffer: 467 bytes (status 00000000).
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Output read for pic 0/0.
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Output packet: pts 1, dts 1, size 467 bytes.
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 9(AUD), nal_ref_idc: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 7(SPS), nal_ref_idc: 3
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 8(PPS), nal_ref_idc: 3
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 5(IDR), nal_ref_idc: 3
[2024:05:11:04:50:44]: Verbose: [h264_vaapi @ 0x5ccb7ede8880] Freed output buffer 0x5
[2024:05:11:04:50:44]: Debug: System tray loop
[2024:05:11:04:50:44]: Debug: EGL: [Mesa Project]: version [1.5]
[2024:05:11:04:50:44]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2024:05:11:04:50:44]: Debug: GL: vendor: AMD
[2024:05:11:04:50:44]: Debug: GL: renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 24.0.6-arch1.2
[2024:05:11:04:50:44]: Debug: GL: shader: 4.60
[2024:05:11:04:50:44]: Info: SDR color coding [Rec. 601]
[2024:05:11:04:50:44]: Info: Color depth: 8-bit
[2024:05:11:04:50:44]: Info: Color range: [JPEG]
[2024:05:11:04:50:44]: Debug: vaapi vendor: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x3231564e -> nv12.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x30313050 -> p010le.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x36313050 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x30323449 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x32315659 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x56595559 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x32595559 -> yuyv422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x59565955 -> uyvy422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x30303859 -> gray.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x50343434 -> yuv444p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x50424752 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x41524742 -> bgra.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x41424752 -> rgba.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x42475241 -> argb.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x58524742 -> bgr0.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec175c0] Format 0x58424752 -> rgb0.
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7ec175c0] VAAPI driver: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2).
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7ec175c0] Driver not found in known nonstandard list, using standard behaviour.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7f234bc0] Created surface 0x1.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7f234bc0] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7ea576c0] Input surface format is nv12.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7ea576c0] Using VAAPI profile VAProfileHEVCMain (17).
[2024:05:11:04:50:44]: Error: [hevc_vaapi @ 0x5ccb7ea576c0] No usable encoding entrypoint found for profile VAProfileHEVCMain (17).
[2024:05:11:04:50:44]: Info: Retrying with fallback configuration options for [hevc_vaapi] after error: Funzione non implementata
[2024:05:11:04:50:44]: Debug: vaapi vendor: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x3231564e -> nv12.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x30313050 -> p010le.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x36313050 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x30323449 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x32315659 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x56595559 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x32595559 -> yuyv422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x59565955 -> uyvy422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x30303859 -> gray.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x50343434 -> yuv444p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x50424752 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x41524742 -> bgra.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x41424752 -> rgba.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x42475241 -> argb.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x58524742 -> bgr0.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Format 0x58424752 -> rgb0.
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7e9f6b40] VAAPI driver: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2).
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7e9f6b40] Driver not found in known nonstandard list, using standard behaviour.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ea4ca80] Created surface 0x1.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ea4ca80] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Input surface format is nv12.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using VAAPI profile VAProfileHEVCMain (17).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using VAAPI entrypoint VAEntrypointEncSlice (6).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using VAAPI render target format YUV420 (0x1).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using CTU size 64x64, min CB size 8x8.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Driver supports RC modes CQP, CBR, VBR.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC mode: CBR.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC target: 100% of 1000000 bps over 1000 ms.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC buffer: 1000000 bits, initial fullness 750000 bits.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC framerate: 60/1 (60,00 fps).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Driver does not report any additional prediction constraints.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using intra and P-frames (supported references: 1 / 0).
[2024:05:11:04:50:44]: Warning: [hevc_vaapi @ 0x5ccb7f5af4c0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Using nv12 as format of reconstructed frames.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ea9cdc0] Created surface 0x3.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ea9cdc0] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using level 4.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Input frame: 1920x1080 (1).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Pick forced IDR-picture to encode next.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Issuing encode for pic 0/0 as type IDR.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] No reference pictures.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Input surface is 0x1.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Recon surface is 0x3.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Allocated output buffer 0x5
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output buffer is 0x5.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (22) is 0x6.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (27) is 0x7.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (27) is 0x8.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (27) is 0x9.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (23) is 0xa.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Packed header buffer (1) is 0xb/0xc (800 bits).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Slice 0: 0-16 (17 rows), 0-509 (510 blocks).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (24) is 0xd.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Sync to pic 0/0 (input surface 0x1).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output buffer: 588 bytes (status 00000000).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output read for pic 0/0.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output packet: pts 1, dts 1, size 588 bytes.
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Freed output buffer 0x5
[2024:05:11:04:50:44]: Info: Screencasting with KMS
[2024:05:11:04:50:44]: Info: /dev/dri/card1 -> amdgpu
[2024:05:11:04:50:44]: Debug: Opening render node: /dev/dri/renderD128
[2024:05:11:04:50:44]: Info: /dev/dri/card2 -> amdgpu
[2024:05:11:04:50:44]: Debug: Opening render node: /dev/dri/renderD129
[2024:05:11:04:50:44]: Info: Found monitor for DRM screencasting
[2024:05:11:04:50:44]: Debug: crtc(0, 0)
[2024:05:11:04:50:44]: Debug: crtc(2560, 1440)
[2024:05:11:04:50:44]: Debug: plane->possible_crtcs == 1
[2024:05:11:04:50:44]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(73)
[2024:05:11:04:50:44]: Debug: Resolution: 2560x1440: Pitch: 10240: Offset: 0
[2024:05:11:04:50:44]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
[2024:05:11:04:50:44]: Info: Found connector ID [87]
[2024:05:11:04:50:44]: Info: Found cursor plane [70]
[2024:05:11:04:50:44]: Debug: EGL: [Mesa Project]: version [1.5]
[2024:05:11:04:50:44]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2024:05:11:04:50:44]: Debug: GL: vendor: AMD
[2024:05:11:04:50:44]: Debug: GL: renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 24.0.6-arch1.2
[2024:05:11:04:50:44]: Debug: GL: shader: 4.60
[2024:05:11:04:50:44]: Info: SDR color coding [Rec. 709]
[2024:05:11:04:50:44]: Info: Color depth: 10-bit
[2024:05:11:04:50:44]: Info: Color range: [JPEG]
[2024:05:11:04:50:44]: Debug: vaapi vendor: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x3231564e -> nv12.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x30313050 -> p010le.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x36313050 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x30323449 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x32315659 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x56595559 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x32595559 -> yuyv422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x59565955 -> uyvy422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x30303859 -> gray.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x50343434 -> yuv444p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x50424752 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x41524742 -> bgra.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x41424752 -> rgba.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x42475241 -> argb.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x58524742 -> bgr0.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7e9cb900] Format 0x58424752 -> rgb0.
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7e9cb900] VAAPI driver: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2).
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7e9cb900] Driver not found in known nonstandard list, using standard behaviour.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7eb59940] Created surface 0x1.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7eb59940] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7ea576c0] Input surface format is p010le.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7ea576c0] Using VAAPI profile VAProfileHEVCMain10 (18).
[2024:05:11:04:50:44]: Error: [hevc_vaapi @ 0x5ccb7ea576c0] No usable encoding entrypoint found for profile VAProfileHEVCMain10 (18).
[2024:05:11:04:50:44]: Info: Retrying with fallback configuration options for [hevc_vaapi] after error: Funzione non implementata
[2024:05:11:04:50:44]: Debug: vaapi vendor: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2)
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x3231564e -> nv12.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x30313050 -> p010le.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x36313050 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x30323449 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x32315659 -> yuv420p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x56595559 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x32595559 -> yuyv422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x59565955 -> uyvy422.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x30303859 -> gray.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x50343434 -> yuv444p.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x50424752 -> unknown.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x41524742 -> bgra.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x41424752 -> rgba.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x42475241 -> argb.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x58524742 -> bgr0.
[2024:05:11:04:50:44]: Verbose: [AVHWDeviceContext @ 0x5ccb7ec102c0] Format 0x58424752 -> rgb0.
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7ec102c0] VAAPI driver: Mesa Gallium driver 24.0.6-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.9-arch1-2).
[2024:05:11:04:50:44]: Debug: [AVHWDeviceContext @ 0x5ccb7ec102c0] Driver not found in known nonstandard list, using standard behaviour.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ec15d00] Created surface 0x1.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7ec15d00] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Input surface format is p010le.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using VAAPI profile VAProfileHEVCMain10 (18).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using VAAPI entrypoint VAEntrypointEncSlice (6).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using VAAPI render target format YUV420_10 (0x100).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using CTU size 64x64, min CB size 8x8.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Driver supports RC modes CQP, CBR, VBR.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC mode: CBR.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC target: 100% of 1000000 bps over 1000 ms.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC buffer: 1000000 bits, initial fullness 750000 bits.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] RC framerate: 60/1 (60,00 fps).
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Driver does not report any additional prediction constraints.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using intra and P-frames (supported references: 1 / 0).
[2024:05:11:04:50:44]: Warning: [hevc_vaapi @ 0x5ccb7f5af4c0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Using p010le as format of reconstructed frames.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7eba7f40] Created surface 0x3.
[2024:05:11:04:50:44]: Verbose: [AVHWFramesContext @ 0x5ccb7eba7f40] Direct mapping possible.
[2024:05:11:04:50:44]: Debug: [hevc_vaapi @ 0x5ccb7f5af4c0] Using level 4.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Input frame: 1920x1080 (1).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Pick forced IDR-picture to encode next.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Issuing encode for pic 0/0 as type IDR.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] No reference pictures.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Input surface is 0x1.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Recon surface is 0x3.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Allocated output buffer 0x5
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output buffer is 0x5.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (22) is 0x6.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (27) is 0x7.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (27) is 0x8.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (27) is 0x9.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (23) is 0xa.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Packed header buffer (1) is 0xb/0xc (808 bits).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Slice 0: 0-16 (17 rows), 0-509 (510 blocks).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Param buffer (24) is 0xd.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Sync to pic 0/0 (input surface 0x1).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output buffer: 587 bytes (status 00000000).
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output read for pic 0/0.
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Output packet: pts 1, dts 1, size 587 bytes.
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[2024:05:11:04:50:44]: Verbose: [hevc_vaapi @ 0x5ccb7f5af4c0] Freed output buffer 0x5
[2024:05:11:04:50:44]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:05:11:04:50:44]: Info: 
[2024:05:11:04:50:44]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:05:11:04:50:44]: Info: 
[2024:05:11:04:50:44]: Debug: ------  h264 ------
[2024:05:11:04:50:44]: Debug: PASSED: supported
[2024:05:11:04:50:44]: Debug: REF_FRAMES_RESTRICT: supported
[2024:05:11:04:50:44]: Debug: CBR: supported
[2024:05:11:04:50:44]: Debug: DYNAMIC_RANGE: unsupported
[2024:05:11:04:50:44]: Debug: VUI_PARAMETERS: supported
[2024:05:11:04:50:44]: Debug: -------------------
[2024:05:11:04:50:44]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2024:05:11:04:50:44]: Debug: ------  hevc ------
[2024:05:11:04:50:44]: Debug: PASSED: supported
[2024:05:11:04:50:44]: Debug: REF_FRAMES_RESTRICT: supported
[2024:05:11:04:50:44]: Debug: CBR: supported
[2024:05:11:04:50:44]: Debug: DYNAMIC_RANGE: supported
[2024:05:11:04:50:44]: Debug: VUI_PARAMETERS: supported
[2024:05:11:04:50:44]: Debug: -------------------
[2024:05:11:04:50:44]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2024:05:11:04:50:44]: Info: Adding avahi service Sunshine
[2024:05:11:04:50:44]: Info: Configuration UI available at [https://localhost:47990]
[2024:05:11:04:50:45]: Info: Avahi service Sunshine successfully established.
[2024:05:11:04:51:00]: Debug: System tray loop
@gschintgen
Copy link
Contributor

Thanks for the detailed report. I can confirm this issue on my desktop PC with Intel iGPU and AMD dGPU when using KMS capture. The adapter setting is ignored, which is unexpected since the documentation states: "Linux + VA-API: Unlike with amdvce and nvenc, it doesn’t matter if video encoding is done on a different GPU."

There is a PR though to implement cross-encoding on a different GPU in an efficient way: #2053.

If I switch to x11grab as capture method, cross-encoding on the iGPU (when rendering on the dGPU) is working. But those codepaths are probably quite inefficient.

As for seeing which card is actually used by libva I submitted a minor PR (#2502) to have slightly more informative output at info level.

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