A rolling tape
One-second segments of lossless FFV1 or hardware HEVC. Starting a recording is instant, and replays can include footage from before the event.
Capture the moment, including the seconds before it.
MindAttic.Media.Capture records video and screenshots for games and apps, from code, from trigger rules or by hand from the tray, so trailer footage, store shots, devlog clips and bug-repro video fall out of normal play.
What it is
The best moments never happen while you are recording. MindAttic.Media.Capture keeps a rolling tape running, lossless FFV1 or hardware HEVC in one-second segments, and cuts clips, replays and whole sessions from it. When the boss dies, SaveReplay keeps the fifteen seconds that led up to it.
Wire it in as deeply as you like. One line records a WPF app; a Unity package and an Unreal plugin record games; a JavaScript bridge and a localhost API let web pages and scripts raise events, take screenshots and save replays. Trigger rules in capture.json decide what each event does: a replay on a critical hit over 500 damage, a screenshot on victory, a chapter marker on every battle.
Or wire in nothing at all. The tray recorder captures any screen, any open window or a dragged area, and can arm an app to start recording the moment it launches. Every wired MindAttic app also understands one shared flag: -capture video, -capture screen 5, or -capture video 8h.
Long unattended runs are safe. A shut-off valve polls disk, memory and encoder lag every five seconds and stops cleanly before anything runs out; a crash leaves finished segments on disk to be exported on the next launch. And capture stays out of shipped Release builds entirely.
Who it's for
Features
One-second segments of lossless FFV1 or hardware HEVC. Starting a recording is instant, and replays can include footage from before the event.
Map events to screenshot, replay, clip or marker actions with where conditions, cooldowns, debounce, per-session caps and presets like Trailer, Devlog and BugReport.
Packages for Windows desktop capture, WPF, WebView2, headless web capture through Playwright and Edge, a Unity 6 package with GPU readback, and an Unreal plugin with C++ and Blueprint APIs.
Record or screenshot a monitor, an app or a dragged area with aspect-ratio snaps and saved regions, rebindable global hotkeys, and apps armed to record on their next start.
Every wired MindAttic app understands -capture video, -capture screen N, hq, durations and timelapse GIFs. Without the flag, a launch is always a plain launch.
Free disk, free RAM, encoder memory and encoder lag are polled every 5 seconds; the first limit crossed stops capture and exports everything so far, while the app keeps running.
A job object stops ffmpeg if the app dies, finished segments stay on disk, and the next launch or capture recover exports them.
Per-repo, per-session folders with a JSON sidecar for every file, a session manifest, per-minute stats, and markers written into the video as chapters.
Packages are referenced outside Release and code sits behind MINDATTIC_CAPTURE, so shipped builds contain no capture code; production Unity players ignore -capture.
How it works
With -capture or the tray, a recorder writes one-second segments to a staging folder.
Your code calls Capture.Raise("boss-death"), or you press a hotkey.
The matching rule cuts a replay from the tape, before and after the event.
An MKV master, an MP4 for any editor, a thumbnail and a sidecar arrive in the session folder.
Quick start
In App.OnStartup, before the main window shows. Then launch with -capture video or -capture screen 5.
The full setup guide lives in the documentation.
CaptureWpf.Init(this, e.Args);
// anywhere in the app
Capture.Raise("critical-hit");Part of MindAttic
MindAttic.Media.Capture is the family's recording engine. MindAttic.Browser records through it, Automata is the worked WPF example, and MindAttic.Telemetry sits beside it to record what the rules engine did while Capture records what the screen showed.
Its tray recorder's settings are edited in MindAttic.Vault, and preview sets collected with capture set are what an agent uses to show its owner what it made.
Status
Packages are at 1.1.0 (Sets at 2.1.0) and in use, with engines, preview sets and web capture shipped. The stable-recorder milestone fixes the known bugs that can drop or misplace footage, replaces the tray with a pinned windowed recorder app, and finishes a clean Release deploy.
Current milestone: Media.Capture stable recorder.
Next step
Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.