Screen share 19: Spike — Windows hardware H264 through the pre-encoded path #166

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

Files:

  • Create: crates/fluxer-voice/src/mf_encoder.rs (Windows only, behind feature mf-encoder, off by default), docs/superpowers/research/2026-11-11-screenshare-spikes.md (§6)
  • Modify: crates/fluxer-voice/{Cargo.toml,src/rtc.rs,README.md}
  • Test: crates/fluxer-voice/tests/mf_encoder.rs (FLUXER_HW_ENCODER_TESTS=1)

Interfaces:

  • Produces: if successful, a MediaFoundation H264 encoder (hardware MFT: NVENC/AMF/QSV) fed from I420/NV12 that drives NativeVideoSource::new_encoded + capture_encoded_frame, honouring take_keyframe_request and take_rate_control_request, published with VideoEncoderBackend::PreEncoded; reported as CodecCap { H264, hardware: true } when the feature is on and an MFT exists. Exit: if after the task's session the stream is not stable in the interop test (keyframes on request, rate control within 20 %), leave the feature off, write why in spikes §6 and open a follow-up; Windows stays software-only (spec §16 Q2).

  • Step 1: Write failing tests: real mft_found_and_encodes_pattern, keyframe_on_request, rate_control_within_20_percent.

  • Step 2–5: FAIL → implement → PASS or exit as above → commit feat(voice): MediaFoundation H264 encoder spike.

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:** - Create: `crates/fluxer-voice/src/mf_encoder.rs` (Windows only, behind feature `mf-encoder`, off by default), `docs/superpowers/research/2026-11-11-screenshare-spikes.md` (§6) - Modify: `crates/fluxer-voice/{Cargo.toml,src/rtc.rs,README.md}` - Test: `crates/fluxer-voice/tests/mf_encoder.rs` (`FLUXER_HW_ENCODER_TESTS=1`) **Interfaces:** - Produces: if successful, a MediaFoundation H264 encoder (hardware MFT: NVENC/AMF/QSV) fed from I420/NV12 that drives `NativeVideoSource::new_encoded` + `capture_encoded_frame`, honouring `take_keyframe_request` and `take_rate_control_request`, published with `VideoEncoderBackend::PreEncoded`; reported as `CodecCap { H264, hardware: true }` when the feature is on and an MFT exists. **Exit**: if after the task's session the stream is not stable in the interop test (keyframes on request, rate control within 20 %), leave the feature off, write why in *spikes §6* and open a `follow-up`; Windows stays software-only (spec §16 Q2). - [ ] **Step 1: Write failing tests**: real `mft_found_and_encodes_pattern`, `keyframe_on_request`, `rate_control_within_20_percent`. - [ ] **Step 2–5:** FAIL → implement → PASS or exit as above → commit `feat(voice): MediaFoundation H264 encoder spike`. 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:59 +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#166
No description provided.