Ultra-lightweight Windows desktop & game screen recorder, toggleable RAM Replay Buffer (Anlık Tekrar), and instant PNG screenshot utility written in Pure Rust with zero external runtime dependencies (no Python, no FFmpeg, no bundled DLLs).
- Zero-Copy GPU Video Pipeline (
src/capture/d3d_capture.rs,mf_video_encoder.rs):- Captures displays via DXGI Desktop Duplication (
IDXGIOutputDuplication), converts BGRA → NV12 and crops regions directly in GPU VRAM usingID3D11VideoProcessor, and feeds surfaces straight to Windows Media Foundation Hardware H.264 MFTs (AMD AMF/NVIDIA NVENC/Intel QSVviaIMFDXGIDeviceManager, with automatic Microsoft Software MFT fallback).
- Captures displays via DXGI Desktop Duplication (
- Toggleable In-Memory Replay Buffer (
src/capture/ring_buffer.rs):- Inspired by SteelSeries GG Moments & NVIDIA ShadowPlay.
- When OFF:
0 MBring buffer RAM and0%background capture/encode load — ideal when you only want manual screenshots or recordings. - When ON: Encodes compressed H.264 + AAC packets exclusively in RAM with zero continuous SSD writes, automatically discarding packets older than your configured window (30 / 60 / 120 / 180 / 300 s or custom 10–600 s) aligned cleanly to IDR keyframes.
- Pressing the Replay hotkey (default
F10) snapshots the RAM ring buffer into a standard MP4 via native WindowsIMFSinkWriter(src/capture/mp4_muxer.rs) without interrupting the ongoing replay loop.
- WASAPI Loopback + Native AAC (
src/capture/wasapi_audio.rs,mf_audio_encoder.rs):- Captures system/game speaker audio directly via Windows Core Audio (
IAudioClientloopback) paced by wall-clock with silent gap padding, encoded via Windows AAC Encoder MFT (192 kbps).
- Captures system/game speaker audio directly via Windows Core Audio (
- Normal Recording (
F9) & Instant PNG Screenshot (F8):- Full-screen or interactive DPI-aware Win32 drag-select region capture (
src/system/region_overlay.rs).
- Full-screen or interactive DPI-aware Win32 drag-select region capture (
- Native Windows Desktop Features (
src/system/,src/ui/app.rs):- Multi-monitor DXGI selection, customizable global hotkeys (
RegisterHotKey), customizable output folder, FPS (60/30) & bitrate (8/12/20 Mbps) controls, persistent%LOCALAPPDATA%\QuickClip\settings.json, single-instance lock, system tray minimize/restore, and optional Windows startup (HKCU\Software\Microsoft\Windows\CurrentVersion\Run).
- Multi-monitor DXGI selection, customizable global hotkeys (
Requires Rust (x86_64-pc-windows-msvc) and Visual Studio / Windows SDK build tools:
# Run unit + GPU integration tests
cargo test -- --nocapture
# Build standalone single-binary dist\QuickClip\QuickClip.exe
powershell -ExecutionPolicy Bypass -File scripts/build_exe.ps1
# Create/update Desktop and Start Menu shortcuts
powershell -ExecutionPolicy Bypass -File scripts/create_shortcuts.ps1.\dist\QuickClip\QuickClip.exe --headless-check
.\dist\QuickClip\QuickClip.exe --smoke-test "$env:TEMP\quickclip_smoke"