Screen share Q1: accept that native viewers cannot decode H264? #179

Open
opened 2026-11-12 02:07:22 +00:00 by charles · 0 comments
Owner

The LiveKit Rust SDK's prebuilt WebRTC has no software H264 decoder on desktop (its own comment in webrtc-sys video_decoder_factory.cpp:45-69); only NVDEC on Linux decodes H264. The native client therefore advertises no H264 decode, and an Electron sharer whose best codec is hardware H264 switches to VP9 (or AV1 if opted in) while a native client watches, which costs that sharer CPU.

Recommended (being built): accept it; the native client advertises exactly what it decodes (Screen share 12, 17).
Alternative: add our own H264 decoder factory by patching webrtc-sys (large detour, new task).

Answer in one line: "recommended" or "alternative" (or your own choice).

Non-blocking: the recommended choice is what the Screen share workflow builds unless this issue says otherwise. See spec section 16.

Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md

The LiveKit Rust SDK's prebuilt WebRTC has no software H264 decoder on desktop (its own comment in `webrtc-sys` `video_decoder_factory.cpp:45-69`); only NVDEC on Linux decodes H264. The native client therefore advertises no H264 decode, and an Electron sharer whose best codec is hardware H264 switches to VP9 (or AV1 if opted in) while a native client watches, which costs that sharer CPU. Recommended (being built): accept it; the native client advertises exactly what it decodes (Screen share 12, 17). Alternative: add our own H264 decoder factory by patching `webrtc-sys` (large detour, new task). Answer in one line: "recommended" or "alternative" (or your own choice). Non-blocking: the recommended choice is what the Screen share workflow builds unless this issue says otherwise. See spec section 16. Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md
charles added this to the Screen share milestone 2026-11-12 02:07:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#179
No description provided.