Vulkan encoding not working on AMDGPU (Radeon 8060S)

未关闭
#5,572 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, linux
领域
backend

调研方向

首先跟踪日志中显示的 Vulkan 编码器选择路径,尤其是 h264_vulkan 的创建以及随后发生的编码器失败。将该路径与报告的 VK_KHR_video_encode_av1 支持进行比较,并确定在 H.264 不可用时是否会尝试 AV1。完成标准是选择受支持的硬件编码器,或清楚地报告失败,并且能够复现或解释所提供的 Sunshine 日志。

由索引模型根据 Issue 内容生成。

描述

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?

None

Describe the Bug

sunshine is using x264 sw encoding even though hardware supports AV1

Expected Behavior

vulkan hw accelleration is used for encoding

Additional Context

sunshine output

[2026-08-28 21:10:47.257]: Info: Sunshine version: 2026.516.143833 commit: 14ffa6fdaa53f7b51512be2b3d24f3939695403c

[...]

[2026-08-28 21:10:47.802]: Info: Trying encoder [vulkan]
[2026-08-28 21:10:47.802]: Info: Screencasting with KMS
[2026-08-28 21:10:47.802]: Info: /dev/dri/card1 -> amdgpu
[2026-08-28 21:10:47.802]: Info: Found monitor for DRM screencasting
[2026-08-28 21:10:47.802]: Info: Found connector ID [453]
[2026-08-28 21:10:47.802]: Info: Found cursor plane [421]
[2026-08-28 21:10:47.802]: Info: Creating encoder [h264_vulkan]
[2026-08-28 21:10:47.802]: Info: Color coding: SDR (Rec. 601)
[2026-08-28 21:10:47.802]: Info: Color depth: 8-bit
[2026-08-28 21:10:47.802]: Info: Color range: JPEG
[2026-08-28 21:10:47.888]: Info: Streaming bitrate is 1000000
[2026-08-28 21:10:47.888]: Error: [h264_vulkan @ 0x346bdec0] Device does not support encoding h264!
[2026-08-28 21:10:47.890]: Error: Could not open codec [h264_vulkan]: Function not implemented
[2026-08-28 21:10:47.890]: Info: Creating encoder [h264_vulkan]
[2026-08-28 21:10:47.890]: Info: Color coding: SDR (Rec. 601)
[2026-08-28 21:10:47.890]: Info: Color depth: 8-bit
[2026-08-28 21:10:47.890]: Info: Color range: JPEG
[2026-08-28 21:10:47.972]: Info: Streaming bitrate is 1000000
[2026-08-28 21:10:47.973]: Error: [h264_vulkan @ 0x346bdec0] Device does not support encoding h264!
[2026-08-28 21:10:47.975]: Error: Could not open codec [h264_vulkan]: Function not implemented
[2026-08-28 21:10:47.975]: Info: Encoder [vulkan] failed

vulkaninfo output

Device Extensions: count = 226

[...]

	VK_KHR_video_encode_av1                       : extension revision 1
	VK_KHR_video_encode_intra_refresh             : extension revision 1
	VK_KHR_video_encode_quantization_map          : extension revision 2
	VK_KHR_video_encode_queue                     : extension revision 12

[...]

VkPhysicalDeviceVideoEncodeAV1FeaturesKHR:
------------------------------------------
	videoEncodeAV1 = true

VkPhysicalDeviceVideoEncodeIntraRefreshFeaturesKHR:
---------------------------------------------------
	videoEncodeIntraRefresh = true

VkPhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR:
------------------------------------------------------
	videoEncodeQuantizationMap = true

what's funny is that apparently there is no H.264 encoding HW support, so maybe sunshine errors out before even trying AV1?

Host Operating System

Linux

Operating System Version

Fedora 44

Architecture

amd64/x86_64

Package

Linux - AppImage

GPU Type

AMD

GPU Model

AMD Radeon 8060S Graphics

GPU Driver/Mesa Version

Mesa 26.0.8

Capture Method

KMS (Linux)

Apps

Log output

Online logs

No response

主要语言
C++
星标
43k
派生
2.4k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LizardByte/Sunshine 的其他 Issue

查看 LizardByte/Sunshine 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。