macOS VT HEVC -12900; iOS h264/h265=false #13071
alexcz-a11y
started this conversation in
General
Replies: 2 comments
-
|
I also noticed this issue today, while attempting to connect to my Mac Studio M2 from my ThinkPad AMD P14s running Arch Linux. The laptop kept choosing AV1 as the best codec but I know the M2 does not support AV1 so went looking through logs. Not having hardware encoding makes connecting to a Mac less smooth than other platforms. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You can try out this? #12792 (comment) There is a fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
How to Reproduce
On macOS (controlled side):
On iOS (controlling side, App Store stable):
Observe macOS server logs during session:
Observe macOS hwcodec checker logs on startup:
Optional:
~/Library/Preferences/com.carriez.RustDesk/RustDesk_hwcodec.tomlto add an H.264 VT entry to ram_encode.Expected Behavior
Operating system(s) on local (controlling) side and remote (controlled) side
Local (controlling): iOS (App Store stable; exact version ios26) Remote (controlled): macOS (26)
RustDesk Version(s) on local (controlling) side and remote (controlled) side
Local (iOS): App Store stable (exact version 1.4.2) Remote (macOS): 1.4.2
Screenshots
Additional Context
Key logs (macOS):
hwcodec checker:
~/Library/Logs/RustDesk/check-hwcodec-config/RustDesk_rCURRENT.log[2025-09-30 02:13:17.422925 +08:00] DEBUG ... encode.rs:310] Testing encoder: hevc_videotoolbox
[2025-09-30 02:13:17.434378 +08:00] ERROR ... ffmpeg.rs:34] Error setting bitrate property: -12900
[2025-09-30 02:13:17.434696 +08:00] ERROR ... lib.rs:17] [FFMPEG_RAM_ENC] avcodec_open2 failed, ... hevc_videotoolbox
[2025-09-30 02:13:17.559125 +08:00] DEBUG ... hwcodec.rs:713] HwCodecConfig { signature: 16843009, ram_encode: [], ram_decode: [ ... AV_HWDEVICE_TYPE_VIDEOTOOLBOX ... ] }
server during iOS→macOS session:
~/Library/Logs/RustDesk/server/RustDesk_rCURRENT.log[2025-09-30 02:13:23.985637 +08:00] usable: vp8=true, av1=true, h264=false, h265=false
[2025-09-30 02:13:23.985646 +08:00] used preference: Auto, encoder: AV1
ffmpeg confirmations (same macOS host, both succeed with I420/yuv420p):
ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30 -t 3 -c:v hevc_videotoolbox -b:v 4M -tag:v hvc1 -pix_fmt yuv420p ./vt_hevc_test.mp4
ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30 -t 3 -c:v h264_videotoolbox -b:v 4M -pix_fmt yuv420p ./vt_h264_test.mp4
Config attempt (macOS):
~/Library/Preferences/com.carriez.RustDesk/RustDesk_hwcodec.toml{
"signature": 16843009,
"ram_encode": [
{"name":"h264","format":"H264","priority":0,"hwdevice":"AV_HWDEVICE_TYPE_VIDEOTOOLBOX"},
{"name":"hevc","format":"H265","priority":3,"hwdevice":"AV_HWDEVICE_TYPE_VIDEOTOOLBOX"}
],
"ram_decode": [
{"name":"h264","format":"H264","priority":0,"hwdevice":"AV_HWDEVICE_TYPE_VIDEOTOOLBOX"},
{"name":"hevc","format":"H265","priority":0,"hwdevice":"AV_HWDEVICE_TYPE_VIDEOTOOLBOX"},
{"name":"h264","format":"H264","priority":3,"hwdevice":"AV_HWDEVICE_TYPE_NONE"},
{"name":"hevc","format":"H265","priority":3,"hwdevice":"AV_HWDEVICE_TYPE_NONE"}
]
}
Notes / Suggestions:
Beta Was this translation helpful? Give feedback.
All reactions