(Steam Deck) Vulkan encoder is picked by default and produces broken HEVC

Đã đóng
#5,841 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, linux
Lĩnh vực
audio-video-rtc, backend

Hướng nghiên cứu

No Sunshine source file or test is named; start by tracing the default encoder selection and availability checks described in the logs, comparing the no-encoder configuration with encoder = vaapi on Steam Deck. Done means the default path no longer selects the broken Vulkan HEVC encoder and HEVC streaming is verified without artifacts.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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 latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

When using the default configuration on a Steam Deck, vulkan + HEVC will be used when streaming, which results in heavy artifacts.

Steps to reproduce:

  • Environment: Steam Deck, Sunshine installed from flatpak, no encoder line in the config
  • Connect with Moonlight using HEVC
  • Result: heavy artifacts
  • Switching to H.264 (either in Sunshine or in Moonlight), or setting encoder = vaapi will show no issue.
Expected Behavior

There should be no artifacts when using the default configuration.

Additional Context

Sunshine itself sets RADV_PERFTEST=video_encode and RADV_EXPERIMENTAL=video_encode on startup, and the Vulkan encoder is placed before VAAPI in the list of encoders, leading to Vulkan being selected if no other encoder = ... is given. This results in heavy artifacts with HEVC.

I initially reported this to Mesa (mesa#16457), which was closed with the comment "That's a FW bug and also one of the reasons why video isn't enabled by default (RADV_EXPERIMENTAL=video_encode) with old FW.". RADV only enables Vulkan video encoding by default when the encoder firmware is new enough. For the Steam Deck's GPU (VCN 3.x), that means ENC 1.33 or newer (see write_memory_supported() in Mesa's src/amd/common/ac_video.c). With older firmware, encoding is only available with RADV_EXPERIMENTAL=video_encode.

On the Steam Deck, the current firmware is ENC 1.27 (vangogh_vcn.bin from linux-firmware-neptune jupiter.20260827.1, SteamOS 3.8.28 stable). SteamOS 3.9 and main (package jupiter.20260910.1) also use 1.27 (checked on 2026-09-30 by reading the firmware header). Upstream linux-firmware for Van Gogh has ENC 1.33 since 2025-08-08 (with two reverts within 1.33 in 2026 because of problems). I didn't test whether 1.33 solves the error.

Tested with 2026.914.233613 from Flathub. The latest pre-release 2026.929.125923 shows the same behavior (tested 2026-09-30 using the flatpak bundle and without the encoder line). Sunshine recognises the broken bitstream in its own encoder check, but chooses the encoder anyway:

Creating encoder [hevc_vulkan]
Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
Couldn't read packet: Invalid data found when processing input
Warning: vulkan: hevc missing sps->vui parameters
Found HEVC encoder: hevc_vulkan [vulkan]

I found #5020 and #5028 which may be related, but both use different setups (wlroots capture and NVIDIA AV1).

Possible solutions:

  • not setting RADV_EXPERIMENTAL=video_encode and RADV_PERFTEST=video_encode indiscriminately. Without it, RADV doesn't offer encoding with this firmware, resulting in Sunshine choosing VAAPI
  • preferring VAAPI on AMD GPUs where RADV doesn't enable video encoding by default (or at least not using HEVC by default in such a case)
  • treating an encoder whose bitstream couldn't be parsed as failed instead of as "missing VUI"
Host Operating System

Linux

Operating System Version

SteamOS 3.8.28 (Build 20260922.1), Kernel 6.18.50-valve2, GameScope 3.16.23.6

Architecture

amd64/x86_64

Package

Linux - flathub/flatpak

GPU Type

AMD

GPU Model

„AMD Custom GPU 0405" (Van Gogh) / Steam Deck LCD

GPU Driver/Mesa Version

Mesa 26.2.2 (RADV), from the Flatpak runtime org.freedesktop.Platform.GL.default//25.08

Capture Method

KMS (Linux)

Apps

Log output
[2026-09-30 22:38:54.806]: Info: Sunshine version: 2026.929.125923 commit: f309ef6577c48dd0a0c20883127e66d180248769
[2026-09-30 22:38:54.806]: Info: Package Publisher: LizardByte
[2026-09-30 22:38:54.806]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-09-30 22:38:54.806]: Info: Get support: https://app.lizardbyte.dev/support
[2026-09-30 22:38:54.806]: Info: config: 'csrf_allowed_origins' = [redacted]
[2026-09-30 22:38:54.807]: Info: config: 'hevc_mode' = 0
[2026-09-30 22:38:54.807]: Info: config: 'system_tray' = disabled
[2026-09-30 22:38:54.808]: Error: Couldn't load cuda: -1
[2026-09-30 22:38:54.809]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:54.810]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-09-30 22:38:54.837]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-09-30 22:38:54.837]: Info: Trying encoder [nvenc]
[2026-09-30 22:38:54.837]: Info: Screencasting with KMS
[2026-09-30 22:38:54.838]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:54.840]: Error: Couldn't find monitor [0]
[2026-09-30 22:38:54.841]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:54.842]: Error: Couldn't find monitor [0]
[2026-09-30 22:38:55.042]: Info: Screencasting with KMS
[2026-09-30 22:38:55.042]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.043]: Error: Couldn't find monitor [0]
[2026-09-30 22:38:55.043]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.043]: Error: Couldn't find monitor [0]
[2026-09-30 22:38:55.243]: Info: Encoder [nvenc] failed
[2026-09-30 22:38:55.243]: Info: Trying encoder [vulkan]
[2026-09-30 22:38:55.244]: Info: Screencasting with KMS
[2026-09-30 22:38:55.244]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.244]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.244]: Info: Found connector ID [120]
[2026-09-30 22:38:55.245]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.245]: Info: Creating encoder [h264_vulkan]
[2026-09-30 22:38:55.245]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:38:55.245]: Info: Color depth: 8-bit
[2026-09-30 22:38:55.245]: Info: Color range: JPEG
[2026-09-30 22:38:55.333]: Info: Streaming bitrate is 1000000
[2026-09-30 22:38:55.333]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:38:55.335]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:38:55.341]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
[2026-09-30 22:38:55.341]: Error: Failed to read unit 4 (type 12): Invalid data found when processing input.
[2026-09-30 22:38:55.341]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:38:55.348]: Info: Creating encoder [hevc_vulkan]
[2026-09-30 22:38:55.348]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:38:55.348]: Info: Color depth: 8-bit
[2026-09-30 22:38:55.348]: Info: Color range: JPEG
[2026-09-30 22:38:55.391]: Info: Streaming bitrate is 1000000
[2026-09-30 22:38:55.391]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:38:55.392]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:38:55.398]: Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
[2026-09-30 22:38:55.398]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:38:55.398]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:38:55.405]: Info: Creating encoder [av1_vulkan]
[2026-09-30 22:38:55.405]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:38:55.405]: Info: Color depth: 8-bit
[2026-09-30 22:38:55.405]: Info: Color range: JPEG
[2026-09-30 22:38:55.449]: Info: Streaming bitrate is 1000000
[2026-09-30 22:38:55.449]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:38:55.449]: Error: [av1_vulkan @ 0x561125457100] Device does not support encoding av1!
[2026-09-30 22:38:55.452]: Error: Could not open codec [av1_vulkan]: Function not implemented
[2026-09-30 22:38:55.453]: Info: Screencasting with KMS
[2026-09-30 22:38:55.453]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.453]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.453]: Info: Found connector ID [120]
[2026-09-30 22:38:55.454]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.454]: Info: Screencasting with KMS
[2026-09-30 22:38:55.455]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.455]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.455]: Info: Found connector ID [120]
[2026-09-30 22:38:55.456]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.456]: Info: Screencasting with KMS
[2026-09-30 22:38:55.456]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.457]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.457]: Info: Found connector ID [120]
[2026-09-30 22:38:55.458]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.458]: Info: Creating encoder [hevc_vulkan]
[2026-09-30 22:38:55.458]: Info: Color coding: SDR (Rec. 709)
[2026-09-30 22:38:55.458]: Info: Color depth: 10-bit
[2026-09-30 22:38:55.458]: Info: Color range: JPEG
[2026-09-30 22:38:55.502]: Info: Streaming bitrate is 1000000
[2026-09-30 22:38:55.502]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:38:55.503]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:38:55.509]: Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
[2026-09-30 22:38:55.509]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:38:55.509]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:38:55.509]: Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
[2026-09-30 22:38:55.509]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:38:55.509]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:38:55.516]: Info: Screencasting with KMS
[2026-09-30 22:38:55.516]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.517]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.517]: Info: Found connector ID [120]
[2026-09-30 22:38:55.518]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.518]: Info: Screencasting with KMS
[2026-09-30 22:38:55.518]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.518]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.518]: Info: Found connector ID [120]
[2026-09-30 22:38:55.519]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.519]: Info: Screencasting with KMS
[2026-09-30 22:38:55.520]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.520]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.520]: Info: Found connector ID [120]
[2026-09-30 22:38:55.521]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.521]: Info: Screencasting with KMS
[2026-09-30 22:38:55.521]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:38:55.521]: Info: Found monitor for DRM screencasting
[2026-09-30 22:38:55.522]: Info: Found connector ID [120]
[2026-09-30 22:38:55.522]: Info: Found cursor plane [103]
[2026-09-30 22:38:55.522]: Warning: vulkan: h264 missing sps->vui parameters
[2026-09-30 22:38:55.523]: Warning: vulkan: hevc missing sps->vui parameters
[2026-09-30 22:38:55.523]: Info: 
[2026-09-30 22:38:55.523]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-09-30 22:38:55.523]: Info: 
[2026-09-30 22:38:55.523]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-09-30 22:38:55.523]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-09-30 22:38:55.524]: Info: No main thread features enabled, skipping event loop
[2026-09-30 22:38:55.527]: Info: Configuration UI available at [https://localhost:47990]
[2026-09-30 22:38:55.527]: Error: Failed to create client: Daemon not running
[2026-09-30 22:39:08.513]: Info: Display device configuration is disabled. Reverting any active display device configuration.
[2026-09-30 22:39:08.513]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-09-30 22:39:08.513]: Info: Trying encoder [nvenc]
[2026-09-30 22:39:08.513]: Info: Screencasting with KMS
[2026-09-30 22:39:08.514]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:08.517]: Error: Couldn't find monitor [0]
[2026-09-30 22:39:08.517]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:08.517]: Error: Couldn't find monitor [0]
[2026-09-30 22:39:08.717]: Info: Screencasting with KMS
[2026-09-30 22:39:08.718]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:08.720]: Error: Couldn't find monitor [0]
[2026-09-30 22:39:08.721]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:08.721]: Error: Couldn't find monitor [0]
[2026-09-30 22:39:08.921]: Info: Encoder [nvenc] failed
[2026-09-30 22:39:08.921]: Info: Trying encoder [vulkan]
[2026-09-30 22:39:08.921]: Info: Screencasting with KMS
[2026-09-30 22:39:08.921]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:08.922]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:08.922]: Info: Found connector ID [120]
[2026-09-30 22:39:08.924]: Info: Found cursor plane [103]
[2026-09-30 22:39:08.924]: Info: Creating encoder [h264_vulkan]
[2026-09-30 22:39:08.924]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:39:08.924]: Info: Color depth: 8-bit
[2026-09-30 22:39:08.924]: Info: Color range: JPEG
[2026-09-30 22:39:08.967]: Info: Streaming bitrate is 1000000
[2026-09-30 22:39:08.967]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:39:08.969]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:39:08.975]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
[2026-09-30 22:39:08.975]: Error: Failed to read unit 4 (type 12): Invalid data found when processing input.
[2026-09-30 22:39:08.975]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:39:08.983]: Info: Creating encoder [hevc_vulkan]
[2026-09-30 22:39:08.983]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:39:08.983]: Info: Color depth: 8-bit
[2026-09-30 22:39:08.983]: Info: Color range: JPEG
[2026-09-30 22:39:09.025]: Info: Streaming bitrate is 1000000
[2026-09-30 22:39:09.026]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:39:09.026]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:39:09.031]: Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
[2026-09-30 22:39:09.031]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:39:09.031]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:39:09.039]: Info: Creating encoder [av1_vulkan]
[2026-09-30 22:39:09.039]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:39:09.039]: Info: Color depth: 8-bit
[2026-09-30 22:39:09.039]: Info: Color range: JPEG
[2026-09-30 22:39:09.084]: Info: Streaming bitrate is 1000000
[2026-09-30 22:39:09.084]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:39:09.084]: Error: [av1_vulkan @ 0x7ff9640323c0] Device does not support encoding av1!
[2026-09-30 22:39:09.087]: Error: Could not open codec [av1_vulkan]: Function not implemented
[2026-09-30 22:39:09.087]: Info: Screencasting with KMS
[2026-09-30 22:39:09.088]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.088]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.088]: Info: Found connector ID [120]
[2026-09-30 22:39:09.089]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.090]: Info: Screencasting with KMS
[2026-09-30 22:39:09.090]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.091]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.091]: Info: Found connector ID [120]
[2026-09-30 22:39:09.092]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.092]: Info: Screencasting with KMS
[2026-09-30 22:39:09.092]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.093]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.093]: Info: Found connector ID [120]
[2026-09-30 22:39:09.094]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.094]: Info: Creating encoder [hevc_vulkan]
[2026-09-30 22:39:09.094]: Info: Color coding: SDR (Rec. 709)
[2026-09-30 22:39:09.095]: Info: Color depth: 10-bit
[2026-09-30 22:39:09.095]: Info: Color range: JPEG
[2026-09-30 22:39:09.139]: Info: Streaming bitrate is 1000000
[2026-09-30 22:39:09.139]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:39:09.141]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:39:09.146]: Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
[2026-09-30 22:39:09.146]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:39:09.146]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:39:09.146]: Error: alignment_bit_equal_to_one out of range: 0, but must be in [1,1].
[2026-09-30 22:39:09.146]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:39:09.146]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:39:09.156]: Info: Screencasting with KMS
[2026-09-30 22:39:09.156]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.156]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.156]: Info: Found connector ID [120]
[2026-09-30 22:39:09.157]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.158]: Info: Screencasting with KMS
[2026-09-30 22:39:09.158]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.158]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.158]: Info: Found connector ID [120]
[2026-09-30 22:39:09.159]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.159]: Info: Screencasting with KMS
[2026-09-30 22:39:09.159]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.160]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.160]: Info: Found connector ID [120]
[2026-09-30 22:39:09.161]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.161]: Info: Screencasting with KMS
[2026-09-30 22:39:09.161]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:09.162]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:09.162]: Info: Found connector ID [120]
[2026-09-30 22:39:09.163]: Info: Found cursor plane [103]
[2026-09-30 22:39:09.163]: Warning: vulkan: h264 missing sps->vui parameters
[2026-09-30 22:39:09.163]: Warning: vulkan: hevc missing sps->vui parameters
[2026-09-30 22:39:09.163]: Info: 
[2026-09-30 22:39:09.163]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-09-30 22:39:09.163]: Info: 
[2026-09-30 22:39:09.163]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-09-30 22:39:09.163]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-09-30 22:39:09.163]: Info: Executing [Desktop]
[2026-09-30 22:39:10.270]: Info: New streaming session started [active sessions: 1]
[2026-09-30 22:39:10.274]: Warning: setpriority failed for nice -15: Permission denied
[2026-09-30 22:39:10.274]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:10.274]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:10.303]: Info: CLIENT CONNECTED
[2026-09-30 22:39:10.307]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:10.307]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:10.309]: Info: Screencasting with KMS
[2026-09-30 22:39:10.309]: Info: Mapped 'eDP-1' to kmsgrab monitor index 0
[2026-09-30 22:39:10.310]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:10.310]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:10.310]: Info: Found connector ID [120]
[2026-09-30 22:39:10.311]: Info: Found cursor plane [103]
[2026-09-30 22:39:10.311]: Info: Creating encoder [h264_vulkan]
[2026-09-30 22:39:10.311]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:39:10.311]: Info: Color depth: 8-bit
[2026-09-30 22:39:10.311]: Info: Color range: MPEG
[2026-09-30 22:39:10.312]: Warning: setpriority failed for nice -15: Permission denied
[2026-09-30 22:39:10.357]: Info: Streaming bitrate is 7308000
[2026-09-30 22:39:10.357]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:39:10.358]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:39:10.359]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-09-30 22:39:10.363]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
[2026-09-30 22:39:10.363]: Error: Failed to read unit 4 (type 12): Invalid data found when processing input.
[2026-09-30 22:39:10.363]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:39:10.658]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2026-09-30 22:39:10.714]: Warning: setpriority failed for nice -15: Permission denied
[2026-09-30 22:39:10.715]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:10.715]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY
[2026-09-30 22:39:23.986]: Info: CLIENT DISCONNECTED
[2026-09-30 22:39:36.956]: Info: Display device configuration is disabled. Reverting any active display device configuration.
[2026-09-30 22:39:37.294]: Info: New streaming session started [active sessions: 1]
[2026-09-30 22:39:37.295]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:37.296]: Warning: setpriority failed for nice -15: Permission denied
[2026-09-30 22:39:37.296]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:37.345]: Info: CLIENT CONNECTED
[2026-09-30 22:39:37.346]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:37.346]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:37.348]: Info: Screencasting with KMS
[2026-09-30 22:39:37.348]: Info: Mapped 'eDP-1' to kmsgrab monitor index 0
[2026-09-30 22:39:37.348]: Info: /dev/dri/card0 -> amdgpu
[2026-09-30 22:39:37.349]: Info: Found monitor for DRM screencasting
[2026-09-30 22:39:37.349]: Info: Found connector ID [120]
[2026-09-30 22:39:37.350]: Info: Found cursor plane [103]
[2026-09-30 22:39:37.350]: Info: Creating encoder [hevc_vulkan]
[2026-09-30 22:39:37.350]: Info: Color coding: SDR (Rec. 601)
[2026-09-30 22:39:37.350]: Info: Color depth: 8-bit
[2026-09-30 22:39:37.350]: Info: Color range: MPEG
[2026-09-30 22:39:37.351]: Warning: setpriority failed for nice -15: Permission denied
[2026-09-30 22:39:37.393]: Info: Streaming bitrate is 7308000
[2026-09-30 22:39:37.394]: Info: [vulkan] Encoder quality set to 1 (balanced), driver range: 0-3
[2026-09-30 22:39:37.395]: Info: Vulkan encode using GPU: AMD Custom GPU 0405 (RADV VANGOGH)
[2026-09-30 22:39:37.396]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-09-30 22:39:37.400]: Error: alignment_bit_equal_to_zero out of range: 1, but must be in [0,0].
[2026-09-30 22:39:37.400]: Error: Failed to read unit 4 (type 19): Invalid data found when processing input.
[2026-09-30 22:39:37.400]: Error: Couldn't read packet: Invalid data found when processing input
[2026-09-30 22:39:37.606]: Info: Setting default sink to: [sink-sunshine-stereo]
[2026-09-30 22:39:37.607]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2026-09-30 22:39:37.683]: Warning: setpriority failed for nice -15: Permission denied
[2026-09-30 22:39:37.683]: Warning: setpriority failed for nice -10: Permission denied
[2026-09-30 22:39:37.683]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY
[2026-09-30 22:39:44.496]: Info: CLIENT DISCONNECTED
[2026-09-30 22:39:44.499]: Info: Setting default sink to: [alsa_output.pci-0000_04_00.5-platform-acp5x_mach.0.HiFi__Speaker__sink]
Online logs

No response

Ngôn ngữ chính
C++
Star
43k
Fork
2.4k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
106

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LizardByte/Sunshine

Tất cả issue của LizardByte/Sunshine

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.