# FilmCraft file formats — what the code actually reads and writes Version: repo tag **v0.20.1**, commit `cedf0c9bd060eb06a977d532402be2097c9ebe42` (inspected 2026-11-12). Carried from v0.18.0 unless marked **New in 0.20.1**. The v0.20.1 wave adds MP3 export, PSD was already importable (the previous note was wrong), DNG gained lossy-JPEG raw data and crate-level raw settings, and the audio codecs plus Ogg moved to craft-libs. No import or export table row lost a format. Every list below is read out of the code, not the marketing docs. Where a doc contradicts the code, the contradiction is named and the code wins. **Naming (0.20.1).** Display labels changed, identifiers did not: the `lumetri` effect is shown as **Color Grading**, the panels as Color Grading / Video Scopes, the preset folder as Color Grading Presets (key `Lumetri Presets`). FCP7 XML, FCPXML and EDL still write `Lumetri Color` (`crates/project/src/effect.rs`, `interchange_name`), so interchange files are unchanged. **Shared ownership.** `crates/isobmff` (MP4/MOV), `crates/matroska` (MKV/WebM), `crates/mxf` and `crates/bitstream` are re-export shims over `craft-media`; the Ogg demuxer now lives in `craft-media` too (the former ogg crate is gone), and the audio codecs (AAC, AC-3/E-AC-3, MP1/MP2, Opus, FLAC) come from `craft-audio` — all from craft-libs pinned at one revision, `rev = "b72cb4d68ca09cf067f144afc1f13abe1e82e1ed"` (`Cargo.toml`; `docs/architecture.md`). What this repo proves is that the openers are registered and wired; box/element-level behaviour beyond `docs/file-format-parity.md` lives in that pin — write "uncertain — see Cargo.toml pin" instead of guessing. ## Import extension lists (authoritative) `crates/media/src/lib.rs` (unchanged from v0.18.0): ```rust STILL_EXTENSIONS = ["png","jpg","jpeg","gif","webp","tif","tiff","bmp","tga","dpx","exr","hdr","dng","psd"] AUDIO_EXTENSIONS = ["wav","wave","bwf","aif","aiff","mp3","mp2","m4a","aac","flac","ogg","opus"] VIDEO_EXTENSIONS = ["mp4","m4v","mov","mkv","webm","avi","mxf","mts","m2ts","m2t","ts","mpg","mpeg", "vob","mod","tod","m2v","m1v","mpv","3gp","y4m","apv"] ``` `is_importable()` is exactly membership in those three lists (the Media Browser and drag/drop filter on it). Files that fail to open still import with an error per file. Container openers, in the order they are tried (`crates/codecs/src/lib.rs`): `mp4` (MP4/MOV), `mkv` (Matroska/WebM), `mxf` (OP1a/OP-Atom), `ogg`, `mpeg` (TS/PS/ES), `apv`, `avi`, `y4m`, `audio` (standalone compressed audio). Then `filmcraft_media` falls back to: OpenEXR sniff, Radiance HDR sniff, WAV, animated GIF/APNG/WebP, generic stills. There is also a streaming `reader_openers` registry (index on open, samples on demand) used for platform media sources such as the web app's WebCodecs MP4. File bytes are read through a guarded regular-file reader that refuses FIFOs and devices and caps at the handle's length (new in 0.20.1, `crates/media/src/reader.rs`). Animated WebP joins animated GIF and APNG as a movie clip: every frame composited onto the full canvas with the file's disposal method, per-frame delays (sub-10 ms clamped to 10 ms), identical consecutive frames merged, transparency kept; a one-frame file falls back to the still decoder (`crates/media/src/animated.rs`). `file.import` sniffs interchange documents as well (AAF/OMF structured storage, ` (schema vN backup).fcproj`. - The work area is part of the sequence (`Sequence::work_area`, `crates/project/src/lib.rs`) and feeds `range: "workArea"` exports. - Load-time hardening: embedded LUT text over 8 MiB is dropped with a warning (`MAX_LUT_TEXT_BYTES`), media frame sizes are validated, audio-stream lists are truncated to the supported count, `next_id` is raised past the largest id in use (or the file is refused when the id space is exhausted), and pin chains in graphic templates are bounded to 256 links (0.20.1, `crates/project/src/graphic_design.rs`). - `view` (open sequences, active sequence, zoom/scroll/playhead per sequence) sits beside the project, is not undoable and does not dirty the project. - Media is by path only; each item also stores a size + first/last-MiB fingerprint (`MediaClip::identity`) used by relinking. Stored paths from documents are opened only when local or on the document's own network share (`crates/engine/src/doc_path.rs`, built on `craft-docpath`); other paths become offline items. Media-pool file I/O (Project Manager, proxies) uses the resolved path, not the stored string. - Writes are atomic (temp in the same directory → fsync → rename → fsync dir) — projects, auto-saves, recovery snapshots, preferences (`docs/project-files.md`); `atomic_write_new` publishes extracted audio without replacing an occupied path (`crates/format/src/atomic.rs`). Related files: auto-saves `Auto-Save/--.fcproj` (`crates/format/src/autosave.rs`; older `-.fcproj` names still list); recovery `Recovery/-[-n]/{snapshot.fcproj,session.json,lock}`; preferences data-dir files: preferences.json; effect-presets.json; export-presets.json; workspaces.json; graphics templates use the `.fcgt` extension; label colour presets `/Label Presets/*.json`. A screenshot requested without a path goes to an owner-only temp folder (`private_temp_dir`), and the session-log / voice-over fallbacks use it when no data directory is configured; the session log otherwise lands in `/Logs`. ## Effect presets User effect presets live in `/presets.json`. FilmCraft also creates and scans `/Effect Presets` on start-up and whenever `presets.scan` runs, reading **Premiere Pro `.prfpset`** (plain XML or gzip, a `` document) and FilmCraft `.json` preset packs, with their nested folder hierarchy, static parameters, animated keyframes, Bezier curves and keyframe scaling/anchoring (`crates/engine/src/prfpset.rs`; `crates/engine/src/presets.rs`). The same files are accepted by `presets.import` and by `file.import` (content sniffed, extension not trusted). One malformed file is renamed `*.json.unreadable` rather than overwritten. Presets whose effects this build does not have are reported, not silently dropped. ## Interchange | Format | Extensions | Import | Export | Module | |---|---|---|:--:|:--:| | Final Cut Pro 7 XML (`xmeml` v4/v5) | `.xml` | yes | yes | `crates/interchange/src/fcp7.rs` | | FCPXML 1.9–1.11 | `.fcpxml`, `.fcpxmld` | yes | yes | `crates/interchange/src/fcpxml.rs` | | OpenTimelineIO | `.otio` | yes | yes | `crates/interchange/src/otio.rs` | | CMX 3600 EDL | `.edl` | yes | yes | `crates/interchange/src/edl.rs` | | AAF (Edit Protocol, MS-CFB) | `.aaf` | yes | yes | `crates/interchange/src/aaf/` (`crates/cfb`) | | OMF Interchange 2.0 | `.omf`, `.omfi` | yes | yes | `crates/interchange/src/omf/` | | Avid Log Exchange | `.ale` | no | yes | `crates/interchange/src/ale.rs` | | Markers CSV | `.csv` | – | yes | `crates/engine/src/marker_export.rs` (100 000-marker / 16 MiB caps) | Format detection sniffs content (AAF/OMF structured storage, `/Proxies/_Proxy.`. Ingest actions: `copy`, `transcode`, `createProxies`, `copyAndCreateProxies` (`project.ingestSettings`). Project Manager modes `collect` and `consolidate` (the latter also accepts `transcode`) with `handles` (frames, default 30), transcode presets `prores_lt`/`prores_hq`/`h264`, `dryRun` returning the plan and disk estimate (`crates/engine/src/project_manager.rs`). Exports always use full resolution, never the proxy (`docs/project-files.md`). A reserved proxy output is removed only if it is still the file the job wrote, and a finished proxy is applied only when its item still points at the source it was made from (0.20.1).