Add native Windows capture backend

This commit is contained in:
Alvin-Zilverstand committed 2026-09-10 08:52:03 +02:00
1 parent 2b465a3555
commit a89e61ed95
9 files changed
+800 -21

No files matched your search

+7 -6
View File
@@ -9,8 +9,9 @@
- The installer bundles `ffmpeg-x86_64-pc-windows-msvc.exe`, so users do not need to install FFmpeg separately.
- Runtime FFmpeg detection checks the bundled sidecar first and then system PATH.
- Tauri commands exist for status, live game detection, clip listing, manual clip creation, auto-clip polling, Start Capture, Stop Capture, clip delete, reveal in Explorer, trim, upload, and settings updates.
- Start Capture launches a rolling FFmpeg segmented replay recorder with a low-spec default profile: 720p30 at 6 Mbps using Media Foundation H.264 when available.
- Capture prefers FFmpeg's Windows Desktop Duplication `ddagrab` filter when available and falls back to `gdigrab`; a local smoke test produced a real MP4 segment with `ddagrab`.
- Start Capture launches a rolling segmented replay recorder with a low-spec default profile: 720p30 at 6 Mbps using H.264 when available.
- Video-only recording now prefers native Windows Graphics Capture with Windows Media Foundation H.264; an ignored local smoke test produced real MP4 segments from the desktop.
- Audio-enabled capture falls back to FFmpeg's Windows Desktop Duplication `ddagrab` filter when available and then `gdigrab`; a local smoke test produced a real MP4 segment with `ddagrab`.
- Stop Capture asks FFmpeg to finalize gracefully, falls back after a short timeout, concatenates recorded segments, and adds the completed full-session MP4 to the local library.
- Manual clips now extract from the rolling segment buffer instead of writing placeholder MP4 files.
- Auto clips now use the same segment extraction/thumbnail pipeline as manual clips.
@@ -34,8 +35,8 @@
## Not Fully Working Yet
- Native Windows Graphics Capture is still a trait/stub boundary; FFmpeg `gdigrab` is the current MVP bridge.
- WASAPI/system-audio capture is enabled only when the selected FFmpeg build exposes a WASAPI input device; the current local FFmpeg build does not, so video capture remains enabled while system-audio capture is marked unavailable.
- Native Windows Graphics Capture is wired for video-only rolling replay capture; game/window targeting and native audio mixing still need more work.
- WASAPI/system-audio capture is enabled only when the selected FFmpeg build exposes a WASAPI input device; native Rust WASAPI capture/mixing is still pending, so video capture remains enabled while system-audio capture is marked unavailable on FFmpeg builds without WASAPI.
- Capture has not yet been manually QA-tested on real NVIDIA/AMD/Intel gaming systems.
- Upload provider configuration UI is not complete; Catbox is live from the default Upload action, but Litterbox/custom HTTP need UI selection and configuration.
- Valve GSI receiver is a lightweight MVP receiver; config templates can be generated from the Auto Clip screen, but richer event mapping per game is still needed.
@@ -43,8 +44,8 @@
## Next Engineering Steps
1. Replace the FFmpeg Desktop Duplication/GDI bridge with native Windows Graphics Capture for lower overhead and better game/window targeting.
2. Add native Rust WASAPI capture/mixing and audio device selection.
1. Extend native Windows Graphics Capture from primary-monitor video capture to proper game/window targeting and resolution scaling.
2. Add native Rust WASAPI capture/mixing.
3. Add upload provider configuration UI for Litterbox/custom HTTP.
4. Generate CS2/Dota GSI config files and expand event mapping.
5. Add installer/onboarding screens for privacy, capture source, storage, and hotkeys.