Export pipeline
text
RenderSource (manifest, PDF, events, edits, envelope)
├─ TimeMap(duration, cuts) output time ⇄ source time
├─ FrameCompositor frame i at i/fps → source time → page + ink + pointer + camera
│ page raster cache (page, viewport) → base cache (+ completed strokes) → in-progress strokes, pointer, camera on top
├─ TimelineAudioReader → EditedAudioRenderer kept ranges, crossfades, mutes, cleanup, gain, fades
└─ AVAssetWriter (H.264 High / HEVC, Rec. 709, AAC 48 kHz mono) in a private scratch folder → atomic move → MediaVerifier- Determinism: every frame is computed from the event log; the same project and settings give the same pictures. Screen
recording is never an input. A frame whose
FrameSignatureequals the previous one reuses the rendered pixel buffer (in the 90-minute test 160 606 of 162 000 frames). - Aspect ratio: the page is letterboxed into the frame; zoom/pan recorded while presenting is replayed (optional).
- Pauses have zero length on the timeline. Cuts are removed by the time map; slide changes and ink that happened inside a cut take effect at the join. Missing or unreadable audio segments render as silence and are reported in the result.
- Crossfade: at each join an equal-power crossfade (30 ms by default) centred on the cut, using the material on both sides of the cut as handles, so the programme duration is exactly the sum of the kept ranges.
- Loudness (optional): one measurement pass (ITU-R BS.1770 K-weighting, gated) then a single gain to −16 LUFS, capped at +20 dB and at a −1 dBFS peak. Cleanup (optional): 80 Hz high-pass and a gentle downward expander (≤ 12 dB) below the noise floor + 8 dB.
- Drift: video frame times are exact rationals of the fps; audio is counted in samples; both derive from the same
TimeMap. - Robustness: free space is checked first; cancellation and failures remove the scratch folder (no partial file is left); the destination is replaced only by a complete file. An interrupted export is restarted, not resumed: the app records that an export was in progress and offers to run it again. On iOS a background task gives the export extra time; when it expires the export is cancelled cleanly.
- Verification: before a video is listed as exported it is reopened, its tracks and duration are checked and its first frame is
decoded (
MediaVerifier).
Other artifacts
Annotated PDF (flattened vector ink, or standard PDF ink annotations on a copy of the original), SRT / WebVTT captions and TXT transcript mapped to the edited timeline, chapters JSON + plain list, copies of the source assets, project archive.
Measured (MacBook Pro, 2026-11-18)
| Case | Result |
|---|---|
| 12 s, 640×360 | ink appears within one frame of its recorded time; clicks at 2 / 5 / 9 s found within 3 ms |
| 90 min synthetic, 640×360, 30 fps | 162 000 frames in 99 s; A/V sync within 3 ms at 7 probes up to 89:59; peak memory 600 MB; file 27.5 MB |
| 16 s real recording, 1920×1080 | exported in 1.0–2.9 s on the simulators, verified by decoding every frame |
| 1080p export of a real 90-minute lecture and 4K export have not been timed. |