Screen share 18: Linux hardware encoding (VAAPI; NVENC documented) #165

Closed
opened 2026-11-12 02:06:58 +00:00 by charles · 0 comments
Owner

Files:

  • Modify: CI workflow (Linux: libva-dev), crates/fluxer-voice/{README.md,src/rtc.rs} (backend selection and reporting), docs/superpowers/research/2026-11-11-screenshare-spikes.md (§5), release docs (how to build with CUDA headers for NVENC)
  • Test: crates/fluxer-voice/tests/hw_encoder.rs (FLUXER_HW_ENCODER_TESTS=1)

Interfaces:

  • Produces: builds with VAAPI H264 compiled in (lazy-loaded libva, so machines without it still run); CodecCap { codec: H264, hardware: true } reported when VAAPI or NVENC is usable at run time; "Encoder path" honoured; spikes §5: CPU and quality comparison VAAPI vs software at 1080p30/60 on the implementer's machine.

  • Step 1: Write failing tests: unit backend_mapping_from_encoder_mode; real vaapi_reports_hardware_and_publishes (FLUXER_HW_ENCODER_TESTS=1).

  • Step 2–5: FAIL → implement → PASS → commit feat(voice): Linux hardware encoding.

Depends on: Screen share 17 (#164)

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

**Files:** - Modify: CI workflow (Linux: `libva-dev`), `crates/fluxer-voice/{README.md,src/rtc.rs}` (backend selection and reporting), `docs/superpowers/research/2026-11-11-screenshare-spikes.md` (§5), release docs (how to build with CUDA headers for NVENC) - Test: `crates/fluxer-voice/tests/hw_encoder.rs` (`FLUXER_HW_ENCODER_TESTS=1`) **Interfaces:** - Produces: builds with VAAPI H264 compiled in (lazy-loaded `libva`, so machines without it still run); `CodecCap { codec: H264, hardware: true }` reported when VAAPI or NVENC is usable at run time; "Encoder path" honoured; *spikes §5*: CPU and quality comparison VAAPI vs software at 1080p30/60 on the implementer's machine. - [ ] **Step 1: Write failing tests**: unit `backend_mapping_from_encoder_mode`; real `vaapi_reports_hardware_and_publishes` (`FLUXER_HW_ENCODER_TESTS=1`). - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(voice): Linux hardware encoding`. Depends on: Screen share 17 (#164) Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md 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:06:58 +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#165
No description provided.