mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 10:52:52 +01:00
feat(capture): record the screen
Screen capture behind a `CaptureBackend`: ScreenCaptureKit and AVFoundation on macOS (HEVC by default), Windows Graphics Capture and a Media Foundation writer on Windows (H.264). Each display is written as fragmented mp4 in segments with every frame's master-clock timestamp, and a manager decides, from what the backend reports, when a segment ends and another begins. The segment logic is shared by both backends and tested without a screen.
This commit is contained in:
1 parent
9d35869f88
commit
fb11cb2db9
19 files changed
+6166
-1
No files matched your search
@@ -75,6 +75,14 @@ The files beside it are the raw records, and they are written as the data arrive
|
||||
(`komorebi.log`, the exact byte range recorded), its events (`events.jsonl`, with full `State` snapshots in `states/`
|
||||
only when they changed), and what happened to the recording itself (`recorder.jsonl`).
|
||||
The OS trace is under `oslog/`, one file per stream.
|
||||
Each display's video is `video-<id>[-<n>].mp4` with a `frames-<id>[-<n>].csv` beside it holding every frame's timestamp,
|
||||
one segment to a file: a display that is unplugged and returns starts a new segment instead of extending the old one.
|
||||
|
||||
## Recording
|
||||
|
||||
The recorder starts its sources in an order that makes the sources that are not video a superset of the video's span
|
||||
(the clock anchor, the OS trace streams, the subscription to komorebi and its first `State`, komorebi's log offset, and
|
||||
last the video), and stops them in the reverse order.
|
||||
|
||||
## Rules and the layer that enforces them
|
||||
|
||||
|
||||
Reference in new issue
Block a user