Recording and media engine
The Rust recording and media engine turns live screen, camera, cursor, keyboard, microphone, and system-audio input into recording projects and media files. It keeps these sources on one time model so the desktop app can record, pause, recover, edit, preview, and export work across macOS, Windows, and Linux.
System boundary
The engine starts with a capture target and optional media devices. It produces either a fast media file or a studio project that keeps source tracks and interaction data for later editing. The desktop client controls this boundary, while the child pages cover capture and recording, encoding and muxing, and export and editor rendering.
| Input or state | Engine responsibility | Result |
|---|---|---|
| Display, window, or area target | Capture the selected visual source at a supported shape and rate | Screen video track |
| Camera feed | Keep a separate camera stream when enabled | Camera video track |
| Microphone and system audio | Align and preserve audio sources | Audio tracks with timing data |
| Cursor, keyboard, and marker events | Record interaction data beside media time | Sidecar data and timeline markers |
| Audio-only target | Keep a timed recording clock without a real display source | Audio tracks and a black display stand-in |
| Project timeline and visual settings | Rebuild the requested view from source tracks | Preview or export frames |
| Recording health and fragment state | Track interruptions and incomplete output | Recovered or diagnosed artifact |
The engine uses one media model for live recording and later playback. cap-media provides the shared media boundary, while cap-recording joins capture sources, project metadata, interaction data, recovery, and output stages (crates/…/lib.rs• L1-49, crates/…/lib.rs• L1-42).
The main product stages are described in Capture and recording pipeline, Media encoding and muxing, and Export and editor rendering.
References: crates/…/lib.rs• L1-95 crates/…/studio_recording.rs• L354-379 crates/…/lib.rs• L17-61
Recording modes
Recording mode selects the shape of the output and how much source information remains for later work. Studio mode keeps source tracks and interaction data for editing. Instant mode favors fast segmented output. Screenshot mode captures one still image instead of a timed project.
| Mode | Primary purpose | Artifact model |
|---|---|---|
| Studio | Full recording and later editing | Timed segments with display, optional camera, audio, cursor, keyboard, markers, and project data |
| Instant | Fast recording and near-live delivery | Segmented display and audio output with a health result |
| Screenshot | Single captured image | Still image rather than a timed project |
Studio pause and resume create separate source segments while keeping cursor and marker continuity. The pipeline can prepare sources before the start cue and admit media only when recording begins. On stop, it writes track metadata, a default timeline, device and timing data, markers, and failure diagnostics. A clean result also depends on capture work reaching a confirmed stopped state (crates/…/studio_recording.rs• L608-729, crates/…/studio_recording.rs• L793-827, crates/…/studio_recording.rs• L990-1009).
Instant completion separates media completion from device cleanup. Downstream cleanup must wait for a clean completion result rather than treat a stopped device as proof that all media workers finished. Linux camera-only Instant recordings use the camera as the video source and do not support system audio (crates/…/instant_recording.rs• L64-205, crates/…/completion.rs• L3-19, crates/…/instant_recording.rs• L1200-1269).
References: crates/…/lib.rs• L47-95 crates/…/instant_recording.rs• L64-205 crates/…/completion.rs• L3-19 crates/…/studio_recording.rs• L608-729
Audio-only recording
Audio-only recording uses the normal timed recording path even though it has no display source. A clock supplies time ticks during capture, then the engine writes a black display stand-in that spans the recorded interval. This keeps pause, recovery, editor loading, and export on the same project model as visual recordings (crates/…/audio_only.rs• L24-60, crates/…/audio_only.rs• L63-177).
References: crates/…/audio_only.rs• L24-60 crates/…/audio_only.rs• L63-177 crates/…/mod.rs• L101-112
Cross-platform capture
The capture layer gives the product one view of a screen target while using the native capture service on each platform. A target can be a display, window, selected area, camera-only source, or audio-only source. Window and area targets are mapped into display coordinates so visual frames and cursor positions use the same crop.
The platform paths are:
- macOS: ScreenCaptureKit supplies display frames and optional system audio. A focused window is read from its own origin at the selected size, while excluded windows use a display crop. The source watches the selected window and can rebuild the stream after system interruptions. It stops after the restart limit or when the target is gone.
- Windows: Windows Graphics Capture supplies frames through a Direct3D path. The source handles requested cadence, selected-window changes, and device interruptions.
- Linux: X11 and Wayland use different capture services and frame ownership rules. X11 can use shared memory. Wayland uses the desktop portal and PipeWire. The portal session belongs to the capture lifetime, so cancel, failed start, and stop all have an explicit close path. Linux camera capture discovers Video4Linux devices and their supported formats.
Capture setup constrains dimensions to valid media sizes and keeps a stable output shape when a display changes size. Cursor and keyboard capture use the same start gate as media. Cursor positions become normalized positions within the selected crop. Window recordings update that crop as the window moves on supported platforms, while Wayland reports when global cursor data is not available (crates/…/mod.rs• L63-77, crates/…/mod.rs• L98-290, crates/…/macos.rs• L31-104, crates/…/macos.rs• L759-905, crates/…/linux.rs• L2385-2645, crates/…/screenshot.rs• L1161-1400, crates/…/lib.rs• L184-218, crates/…/position.rs• L33-127, crates/…/cursor.rs• L642-814).
Wayland screen capture owns the portal session for the capture lifetime. A canceled start or failed PipeWire connection closes the acquired session. A close failure keeps cleanup unconfirmed instead of reporting a safe stop. Already-closed portal objects are treated as an idempotent close (crates/…/linux.rs• L108-150, crates/…/linux.rs• L448-497, crates/…/wayland_portal_tests.rs• L207-341). Linux screenshots use the same platform boundary and reject portal results that cannot be proved to match the selected display (crates/…/screenshot.rs• L1204-1297, crates/…/screenshot.rs• L1320-1402).
Camera capture uses a shared feed so previews and recordings can receive the same device stream. A studio camera track can release the old device and attach a new one without ending the screen and microphone tracks. The track keeps its initial media shape, so a changed camera format is scaled into that shape. Camera placement is derived from the overlap between the camera and the recorded display or window, then mapped to a standard top, center, or bottom position (crates/…/camera.rs• L46-86, crates/…/camera_input.rs• L16-20, crates/…/camera_input.rs• L193-297, crates/…/camera.rs• L70-203, crates/…/camera_placement.rs• L11-82).
References: crates/…/mod.rs• L63-77 crates/…/mod.rs• L98-290 crates/…/macos.rs• L28-63 crates/…/macos.rs• L774-946 crates/…/linux.rs• L108-150 crates/…/linux.rs• L448-497 crates/…/wayland_portal_tests.rs• L207-341 crates/…/screenshot.rs• L1161-1400 crates/…/lib.rs• L184-218 crates/…/position.rs• L33-127 crates/…/cursor.rs• L223-239 crates/…/cursor.rs• L769-915 crates/…/camera.rs• L46-86 crates/…/camera_input.rs• L193-297 crates/…/camera_placement.rs• L11-82
Audio capture
Audio capture turns device callbacks and system-audio routes into timestamped audio frames for the output pipeline. The feed can open devices before recording, switch an already-open microphone during an Instant recording, and keep the recording timeline when the device changes.
Microphone setup is bounded and cancellable. The source checks the callback clock before it accepts a new sample rate, and it changes rate only after repeated matching observations. This prevents one late callback from changing the rate and stretching later audio. A stalled device is first allowed to deliver late real samples. Sustained stalls can produce keepalive silence and start reconnect attempts with backoff. A long run of exact digital silence is reported as a health problem because it can mean that the system route took the input from the device (crates/…/microphone.rs• L82-113, crates/…/microphone.rs• L166-285, crates/…/microphone.rs• L21-85, crates/…/microphone.rs• L919-1019).
The source resamples each input to the track format while keeping the input capture timestamp. Linux system-audio routing admits samples only after the route is confirmed. This keeps route setup and device recovery from adding audio before the intended source is live (crates/…/microphone.rs• L1398-1585, crates/…/microphone.rs• L292-390).
References: crates/…/microphone.rs• L82-113 crates/…/microphone.rs• L166-285 crates/…/microphone.rs• L1296-1585 crates/…/microphone.rs• L21-85 crates/…/microphone.rs• L241-269 crates/…/microphone.rs• L292-390 crates/…/microphone.rs• L919-1019
Media pipeline
Each source enters an output pipeline with a capture timestamp and media description. The pipeline applies the start gate, pause state, queue limits, clock checks, and health reporting before it sends frames to encoders and muxers. The muxer writes a file or a set of media segments.
The live path follows this sequence:
flowchart LR
A[Capture target and devices] --> B[Platform source frames]
B --> C[Timestamp and source health]
C --> D[Audio alignment]
C --> E[Video encoding]
D --> F[Audio encoding]
E --> G[Muxer or segment writer]
F --> G
G --> H[Recording project artifacts]
H --> I[Editor and export]
The display track is required for studio recordings unless the recording is audio-only. Camera and audio tracks are optional and can fail without discarding the display track. The artifact records those failures as per-track diagnostics and health data. Bounded send budgets prevent a slow consumer from stopping capture indefinitely. The video start gate also prevents a static source from using an old frame as the first frame after the start cue (crates/…/core.rs• L39-46, crates/…/core.rs• L170-240, crates/…/core.rs• L647-720, crates/…/studio_recording.rs• L1435-1588).
Health events make live problems visible without changing the media contract. They cover frame drops, stalls, audio gaps, source restarts, device loss, encoder rebuilds, muxer failure, target loss, and low or exhausted disk space. On macOS, the writer checks for usable disk space before start and reports queue pressure, dropped frames, fatal writer errors, and finish failures. Fragmented output also reports encoder replacement, lost encoder tail frames, and storage stalls. The child page Media encoding and muxing covers encoder choice, packet flow, muxing, remuxing, and segmented output (crates/…/core.rs• L445-506, crates/…/core.rs• L540-720, crates/…/macos.rs• L41-114, crates/…/macos.rs• L116-215, crates/…/macos_fragmented_m4s.rs• L105-217, crates/…/macos.rs• L723-876).
References: crates/…/core.rs• L39-46 crates/…/core.rs• L170-240 crates/…/core.rs• L445-720 crates/…/macos.rs• L41-114 crates/…/macos.rs• L116-215 crates/…/macos_fragmented_m4s.rs• L105-217 crates/…/macos.rs• L723-876 crates/…/studio_recording.rs• L1435-1588
Time alignment
Time alignment gives every source a common presentation order even when devices use different clocks or deliver data at different rates. The start gate keeps pre-cue media out of timeline zero, while pause state removes paused time from segmented output.
Each track gets a start offset relative to its segment epoch. Nearby starts can snap to the same time. The recorder persists these offsets beside an in-progress segment as start-times.json as soon as first frames arrive, then uses the same values during normal finalization and crash recovery. This preserves alignment when a recording stops before final metadata is written (crates/…/studio_recording.rs• L1620-1668, crates/…/studio_recording.rs• L2893-2953, crates/…/recovery.rs• L170-184, crates/…/recovery.rs• L2668-2769).
Video timestamps preserve delivery gaps instead of collapsing them. Audio records overlap trimming and startup alignment so editor and export stages do not apply the same correction twice. The output path skips unsafe first-frame corrections when the A/V offset is too large. Later consumers use track start times and gap summaries to rebuild clip offsets (crates/…/core.rs• L170-240, crates/…/core.rs• L792-845, crates/…/core.rs• L907-1113, crates/…/studio_recording.rs• L2875-2958).
References: crates/…/studio_recording.rs• L1620-1668 crates/…/studio_recording.rs• L2893-2953 crates/…/core.rs• L170-240 crates/…/core.rs• L792-845 crates/…/core.rs• L907-1113 crates/…/recovery.rs• L170-184 crates/…/recovery.rs• L2668-2769
Recording artifacts
The engine stores media and interaction data as a project rather than one opaque file. A project records the files for each segment, each track's start time and duration, cursor and keyboard data, timeline markers, and the health state that downstream editor and upload work must respect.
Cursor and keyboard sidecar data is flushed during recording so a long session does not depend on one final write. A separate writer keeps slow storage from blocking input sampling. Complete sidecar files replace the previous version atomically when the platform permits it. Cursor images that fail to save are retried and are not kept as registered assets if they remain unavailable (crates/…/cursor.rs• L223-264, crates/…/cursor.rs• L266-383, crates/…/cursor.rs• L403-493). The cursor recorder also checks for a changed shape while the pointer is still. It checks often just after movement, a click, or a shape change, then slows its checks after two seconds of inactivity. This keeps shape changes visible without repeated high-rate window-server queries during a long idle period. The same behavior covers the platform path used by Wayland (crates/…/cursor.rs• L223-239, crates/…/cursor.rs• L769-915).
Recording markers are captured against the clock of the segment in which the input happened. The sidecar is written during the recording, so crash recovery can keep markers that a normal stop would save. A marker pressed while paused belongs at the end of the prior segment. If recovery drops an empty segment, marker placement maps the old segment index to the saved project segments (crates/…/markers.rs• L14-29, crates/…/markers.rs• L89-249, crates/…/markers.rs• L251-289).
Studio finalization keeps the display track as the required backbone. Optional track failures remain visible in recording diagnostics instead of silently changing the meaning of the project. A segment with no screen frame is kept aside as an empty segment rather than treated as valid media. Its index is reused by the next segment, and its markers are moved to a valid segment (crates/…/studio_recording.rs• L522-549, crates/…/studio_recording.rs• L1555-1600, crates/…/hardware_studio_empty_segment.rs• L140-210).
Recovery inspects fragment state and media validity before it builds a project again. It accepts complete fragments and safe prefixes from interrupted fragments. It also includes valid respawn groups, rejects unsafe or incomplete media, checks required tracks, and publishes only after staged validation and a final source check. A failed validation leaves the original recording in place (crates/…/recovery.rs• L486-717, crates/…/recovery.rs• L788-1043, crates/…/recovery.rs• L1297-1497, crates/…/recovery.rs• L1570-1677).
The engine detects when a direct read of the normal track files would omit footage from a restarted muxer or a pending fragment. Those recordings go through recovery so the editor receives all valid media rather than only the files in the main track directory (crates/…/recovery.rs• L281-317, crates/…/recovery.rs• L838-905, crates/…/needs_remux_tests.rs• L733-787).
Recovery has two user-level outcomes. Normal recovery refuses to hide a required-track failure. Salvage keeps every track that has usable media up to the interruption and moves failure evidence aside so the recovered project can open. Prefix publication does not replace an existing destination. It uses a platform-safe move where available and a durable, create-new copy as fallback (crates/…/recovery.rs• L82-125, crates/…/recovery.rs• L1221-1235, crates/…/prefix.rs• L3-94).
Stopped recordings can also expose a preparing view to downstream work before full remux publication. The observer ties that view to one project identity and generation. It publishes only after the stopped metadata, project configuration, segment map, sidecars, and media inventory agree. If the job ends or the source changes, the view becomes unavailable rather than exposing a partial or stale project (crates/…/preparing_observer.rs• L17-98, crates/…/preparing_observer.rs• L108-240, crates/…/preparing_projection.rs• L133-260).
References: crates/…/cursor.rs• L223-264 crates/…/cursor.rs• L266-493 crates/…/cursor.rs• L769-915 crates/…/markers.rs• L14-29 crates/…/markers.rs• L89-289 crates/…/studio_recording.rs• L522-549 crates/…/studio_recording.rs• L1555-1600 crates/…/hardware_studio_empty_segment.rs• L140-210 crates/…/recovery.rs• L281-317 crates/…/recovery.rs• L486-717 crates/…/recovery.rs• L788-1043 crates/…/recovery.rs• L1221-1251 crates/…/recovery.rs• L1297-1497 crates/…/recovery.rs• L1570-1677 crates/…/preparing_observer.rs• L108-240 crates/…/preparing_projection.rs• L133-260 crates/…/prefix.rs• L3-94 crates/…/needs_remux_tests.rs• L733-787
Recording lifecycle
The studio lifecycle treats capture cleanup as part of recording correctness. A stop or cancel can return a media result only when the capture workers have reached a known state. If cleanup is unconfirmed, the engine preserves the local recording and exposes the failure rather than reveal or delete media that may still be in use.
Pause stops the active segment and records its cursor and marker state. Resume prepares the next segment and commits it only after setup succeeds. On Linux, resume and cleanup have explicit quiescence states so a canceled or failed setup cannot be mistaken for a safe stop (crates/…/studio_recording.rs• L203-310, crates/…/studio_recording.rs• L793-827, crates/…/studio_recording.rs• L1107-1235).
If screen capture fails after recording metadata is written, the recording is marked Failed with the saved error. It does not remain in an in-progress state that hides the failed start (crates/…/studio_recording.rs• L567-590, crates/…/hardware_studio_start_failure.rs• L11-49).
References: crates/…/studio_recording.rs• L203-310 crates/…/studio_recording.rs• L520-590 crates/…/studio_recording.rs• L793-827 crates/…/studio_recording.rs• L1107-1235 crates/…/hardware_studio_empty_segment.rs• L61-120 crates/…/hardware_studio_start_failure.rs• L11-49
Upload resume
Upload resume lets downstream delivery continue from media that a recording already saved. It protects one recording with a private upload lock, validates the track manifest and every listed fragment, and refuses links, incomplete files, unexpected files, and missing required audio (crates/…/upload_resume.rs• L32-136, crates/…/upload_resume.rs• L201-332).
When an interrupted track has a valid run of fragments, sealing adopts the usable prefix and moves the unfinished tail or unlisted media aside without deleting it. The same checks are used again when upload collects segment events, so a partial or changed file cannot become a resumable recording (crates/…/upload_resume.rs• L335-435).
References: crates/…/upload_resume.rs• L32-136 crates/…/upload_resume.rs• L201-332 crates/…/upload_resume.rs• L335-435
Load-time media repair
Load-time repair protects older recordings from known timestamp defects without changing healthy media. It runs when a studio project opens and repairs only an unambiguous stretched track or an incorrect stored display rate.
The repair path handles two cases:
- A camera track can be longer than the display and audio tracks because frames were stamped at the wrong rate. The engine compares independent track spans and rewrites timestamps only when they agree on the expected duration.
- A display track can carry a synthetic timestamp ladder from high-refresh Windows capture. The engine also checks the recording wall span or multiple audio references before rewriting it. It keeps the original media beside the healed file and updates the project timeline when the display span changes.
The repair is exclusive per project and verifies the healed duration before installation. This keeps editor playback and export aligned while avoiding a second repair of the same source (crates/…/track_heal.rs• L30-46, crates/…/track_heal.rs• L49-90, crates/…/track_heal.rs• L139-279, crates/…/track_heal.rs• L307-453).
References: crates/…/track_heal.rs• L30-90 crates/…/track_heal.rs• L139-279 crates/…/track_heal.rs• L307-453 crates/…/track_heal.rs• L520-599
Editor and export handoff
The editor reads project metadata, opens display and camera tracks, loads audio, and uses cursor, keyboard, marker, zoom, camera, and timeline data as rendering inputs. The renderer combines decoded source frames with project layers and returns frames for preview, playback, or export (crates/…/editor_instance.rs• L347-438, crates/…/editor_instance.rs• L454-610, crates/…/lib.rs• L623-728).
Export builds the same project view and sends rendered frames and timeline audio to a final media writer. It uses temporary output and cancellation ownership so incomplete work is not presented as a finished file. The child page Export and editor rendering covers decoding, composition, preview, and final output (crates/…/lib.rs• L110-195, crates/…/mp4.rs• L323-734).
References: crates/…/editor_instance.rs• L347-438 crates/…/editor_instance.rs• L635-755 crates/…/lib.rs• L631-735 crates/…/lib.rs• L110-195 crates/…/mp4.rs• L323-734
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to persisted track start times must keep start-times.json, final recording metadata, cross-track snapping, and recovery on the same time model.
- Changes to pause, resume, the start gate, or empty-segment handling must cover every active source, exclude pre-start media, preserve segment numbering, and remap markers.
- Changes to microphone setup or switching must keep callback-rate inference, route admission, resampling timestamps, reconnect state, and health events consistent.
- Changes to camera switching or placement must keep the shared feed, track media shape, replacement queue, full-resolution hold, and project camera position aligned.
- Changes to audio-only recording must keep the clock span, black display stand-in, required-track rules, and downstream project assumptions aligned.
- Changes to cursor or marker sidecar writes must keep incremental flushes, atomic replacement, image registration, segment clocks, and final event output consistent.
- Changes to optional-track failure handling must preserve diagnostics and the distinction between a usable degraded project and a failed required track.
- Changes to recovery fragment selection must keep manifest checks, pending-prefix rescue, respawn ordering, direct-read detection, path safety, and original-media preservation consistent.
- Changes to preparing recovery must keep the stopped identity, configuration snapshot, media inventory, observer state, and publication result tied to the same job.
- Changes to upload sealing must keep lock ownership, manifest versions, fragment byte counts, tail checks, and unsealed-file preservation aligned.
- Changes to portal or native capture cleanup must keep cancellation, restart limits, quiescence state, and persisted start-failure status consistent on each platform.
- Changes to encoder or muxer stop behavior must preserve the difference between clean completion, joined cleanup, and unconfirmed cleanup.
- Changes to rendered frame formats must stay aligned with the export encoder path and its CPU and hardware fallbacks.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Capture cleanup is unconfirmed | Local media may still be in use when the app reveals or deletes it | Lifecycle state requires joined capture work and preserves the recording otherwise |
| A macOS capture stream stops repeatedly | The recording can lose its target or stop after a restart loop | Watch the target, retry only within the restart limit, and emit source health |
| A Wayland portal start or close fails | A session or PipeWire remote can remain active while the recording reports success | Own the portal session in the capture lifetime and report unconfirmed cleanup |
| A microphone callback stalls briefly | Fabricated silence can add time twice when late real samples arrive | Wait for real timestamps and use keepalive silence only after a sustained stall |
| A microphone reports one bad rate estimate | Audio can be resampled at the wrong ratio and drift | Require repeated matching estimates before changing the active rate |
| A microphone produces sustained digital zeros | The recording can contain a silent track even though callbacks continue | Detect long exact-zero runs and emit microphone health |
| A camera switch closes the old queue before the replacement is ready | The camera track can end even though the screen and microphone continue | Bridge the track during release and queue the replacement before closing the old input |
| A native camera ingress or encoder queue fills | Camera frames are lost and the camera track can become incomplete | Bound ingress memory and time, count loss at each boundary, and emit frame-drop health |
| An optional camera or audio track fails | The display recording can remain usable but the project must show the failed track | Record per-track diagnostics and keep the required display path separate |
| A segment has no screen frame | Finalization can publish empty media or fail a valid recording | Move the empty segment aside, reuse its index, and keep recorded segments |
| A recording start fails after metadata is written | The project can remain stuck as in progress | Persist the failure as a failed recording with its error |
| A pending fragment has a torn tail | Recovery or upload could publish partial media as complete | Inspect the fragment tail and keep only a validated prefix |
| A restarted muxer or pending fragment is read directly | The editor or upload can omit valid footage | Detect media beyond the direct read and route it through recovery |
| A stopped source changes during preparing recovery | The prepared view can describe a different project than the one inspected | Compare identity, metadata, configuration, inventory, and source state before publication |
| A cursor image cannot be written | Events can refer to an asset that is not on disk | Retry the image and remove any still-unsaved cursor from the final registry |
| An upload destination is already locked | Two upload jobs can change the same recording at once | Acquire a private per-project lock and return a busy result |
| Recording data changes during staged recovery | The rebuilt project could describe a different source than the one inspected | Compare source snapshots before publication and retain originals on mismatch |
| A required segment or track is missing | Recovery could silently shorten the recording | Require all display segments and all requested tracks unless the user selects salvage |
| A stretched track is mistaken for a healthy track | Playback and export become slow or out of sync | Require agreeing duration evidence, verify the repaired file, and retain the original |
Key files
| File | Why to read it |
|---|---|
| crates/…/lib.rs | Defines recording modes, shared inputs, health states, and the media subsystem boundary. |
| crates/…/studio_recording.rs | Shows studio capture lifecycle, pause and resume, empty-segment handling, timing, diagnostics, and project finalization. |
| crates/…/instant_recording.rs | Shows fast recording completion and the distinction between media completion and capture cleanup. |
| crates/…/mod.rs | Defines capture targets, coordinate mapping, and common capture configuration. |
| crates/…/macos.rs | Shows macOS window and display capture behavior, source restart, and capture health. |
| crates/…/linux.rs | Shows Linux X11 and Wayland source setup and portal lifetime handling. |
| crates/…/audio_only.rs | Shows how audio-only recordings keep the shared timing and project model. |
| crates/…/camera.rs | Shows shared camera feed ownership, readiness, fan-out, and frame-drop reporting. |
| crates/…/camera_input.rs | Shows camera track release and replacement without ending other tracks. |
| crates/…/camera.rs | Shows camera frame delivery and format normalization for an encoded track. |
| crates/…/camera_placement.rs | Shows how the camera position is inferred from the recorded target. |
| crates/…/cursor.rs | Shows cursor and keyboard timing plus durable sidecar and cursor-image output. |
| crates/…/markers.rs | Shows marker timing across start, pause, resume, and recovery. |
| crates/…/core.rs | Defines shared timing, start gating, health reporting, stall limits, and completion behavior. |
| crates/…/macos.rs | Shows macOS writer preflight, queue pressure, frame drops, and finish errors. |
| crates/…/macos_fragmented_m4s.rs | Shows segmented macOS encoding, encoder replacement, storage stalls, and finish errors. |
| crates/…/recovery.rs | Shows fragment inspection, direct-read detection, prefix rescue, staged validation, remux, and project rebuilding. |
| crates/…/preparing_observer.rs | Shows how a stopped recording becomes an identity-bound preparing view. |
| crates/…/preparing_projection.rs | Shows validation of the stopped project view before publication. |
| crates/…/needs_remux_tests.rs | Shows why restarted muxers and pending fragments must go through recovery. |
| crates/…/upload_resume.rs | Shows upload locking, manifest validation, interrupted-track sealing, and resumable segment selection. |
| crates/…/track_heal.rs | Shows load-time detection and repair of stretched or incorrectly rated video tracks. |
| crates/…/lib.rs | Connects decoded screen and camera tracks to editor and export frames. |
| crates/…/mp4.rs | Shows the rendered-frame, audio, validation, and final MP4 handoff. |