Repository navigation
Conversation
… tree) New L1 crate crates/aep. parse(&[u8]) reads the RIFX 'Egg!' container into a chunk tree (ids, bodies, list types, pad bytes, the bytes after the container incl. the XMP packet); write(&AepFile) serialises it with sizes recomputed, so every input that parses writes back byte for byte. Bounded for hostile input: sizes checked against the remaining input, depth and chunk-count limits, no allocation from declared sizes. Lists that are not chunk sequences (btdk) stay opaque. Registered in xtask LAYERS and docs/architecture.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Nine small project files generated with After Effects 2026 as the contributor's own test data (empty, base, 3D switch, 30 fps, static Position, three Position keyframes, slider effect, rectangular mask, text layer), attributed in ATTRIBUTION.md with sidecars. Tests: byte-identical round trip of every fixture, container facts (header, XMP trailer, nested Utf8 ids, LIST btdk kept opaque), hand-built odd cases (trailing-space ids, non-zero and missing pad bytes, raw-text lists, oversized children, empty/short lists, XMP), limits (depth bomb, chunk count), and robustness (truncation at every length, seeded byte flips, oversized sizes, garbage): whatever parses writes back identically and nothing panics. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A small borrowed view on the chunk tree, limited to facts established in our own one-change-per-file corpus and checked by tests against the values the files were generated with: item kind (idta u16) and name (Utf8) incl. folders (Sfdr), comp time base (cdta frame duration and timescale), layers (Layr), layer name and 3D switch, the property tree (tdgp groups and tdbs properties named by the 40-byte tdmn match name that precedes them), tdb4 dims and keyframe flag, the static value (first dims f64 of cdat), lhd3/ldat list facts (count, record size, len(ldat) = count * size) and the keyframe time (i32 at record byte 0) and Position value of 128-byte spatial records. Everything else stays reachable as raw chunks. Robustness test runs the view over damaged files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…thod) Evidence-based description of the .aep container and the typed-view fields, each fact with the synthetic case numbers that prove it, what is observed but not decoded, and the method (one change per file, manifest, diffs, verification by the crate tests). file-format-parity.md notes the container support. Also: tests for LIST types with a trailing space and for the keyframe list word 3/7 relations on animated properties. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Own generated projects, one scripted change each: layer switches and times, comp header fields, static transform values, keyframes, an expression, effects, masks, text, markers, a precomp and a png footage layer. The container of every file is byte-identical to the generated one; the XMP packet after it is the (5.8 KB) packet of the base project in all fixtures (the packet grows by 1.7 KB per save and was half of the bytes), and the file path and machine name in the footage alias JSON of 126 are replaced by neutral text of the same length. All fixtures together stay below 4 MB. Sidecars and ATTRIBUTION.md rows added. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…records, expressions Layer header (ldta): id, quality, stretch, start / in / out as exact fractions with the "relative to start" convention, switches (shy, locked, solo, 3D, motion blur, collapse, adjustment, guide, null object), label, blend mode (Normal, Multiply), type, parent, source. Comp header (cdta, PRin): time base, 16.16 frame rate, duration, work area, background, shutter angle, size, pixel aspect, motion blur, renderer. Static transform values in the units After Effects shows, with the sparse "absent = default" rule. Keyframe records (48/128-byte): interpolation bytes, label, roving, scalar and spatial values, tangents, raw ease slots. Expression text and flag bytes. Item ids/labels, footage items (dims, name, path, solid colour) and precomp linkage. Every field is asserted against the corpus manifest values. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…red values) Effect view over the sspc under ADBE Effect Parade: match name, instance name, parn count, parameters with type code, name, popup items, the pard default for float/fixed sliders, angles and popups, and the stored value record (float slider, colour as ARGB fractions). Checkbox, point and colour defaults and min/max stay undecoded (not verifiable against the manifest). Tested on the slider, colour, dropdown and drop shadow cases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…h shapes Mask view over ADBE Mask Parade: name, mode (Add, Subtract) and invert from mkif (first mask only), feather / opacity / expansion with the absent = default rule, path keyframe times, and the shph + point list of every shap as normalised f32 with the documented [vertex, out handle, next in handle] order, scaled to absolute control points. Tested on the rectangle, the property case and the two-key animated path; tangent sign and length stay unverified (no curved vertex in the corpus). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lid tests Port of the text dictionary parser (names, numbers, booleans, nested dictionaries and arrays, UTF-16BE strings with escapes; depth limited, never panics) and the verified text fields: string, font size, fill colour, font list and the first run's font. Layer and composition markers (time and comment). Tests on the text, marker, solid and png footage cases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… damaged chunk bodies) The exercise function now touches every accessor (headers, transform, keyframes, expressions, effects, masks, text, markers, footage). New tests: all fixtures read undamaged; byte flips and truncation on 23 decoded fixtures; direct damage of the decoded chunk bodies in the tree (empty, truncated, extreme counts, NaN doubles, unterminated text); extreme header values; damaged alias JSON. No panic was found (also not at 20x the iterations); the extreme-value tests pin the overflow and division-by-zero guards. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…of undecoded fields Field tables (field | chunk path | offset | type | meaning | evidence cases | confidence) for the layer header, composition header and renderer, items / footage / precomp links, property records and static values with their units and the absent = default rule, keyframes, expressions, effects, masks and bezier paths, text documents and markers; section 4 lists what stays undecoded (?, H, E without a manifest value, unsampled areas). Method section kept. README and module docs describe the typed view. Tests: mask path (64-byte) and marker (16-byte) record kinds, static flag of a written property. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…es, masks, shapes, text, markers, camera, light, solids) Small files only, cases 202-259 of the synthetic corpus; the container of each is byte-identical to the generated file, the XMP packet after it is the base project's. No local paths or machine names inside (checked). All fixtures together stay below 8 MB. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ates, anchor, switches, blends, masks, shapes, text runs, markers, camera, light, effect values) Keyframes: byte 4 is the incoming and byte 5 the outgoing interpolation; the four ease slots (speed/influence in/out) of plain and spatial records; the record template follows tdb4 (components, template flag), so a 128-byte Scale key is plain and a 152-byte colour key spatial. Anchor: fraction of the layer source size (Project::layer_anchor_px). Expression disabled flag (tdb4 byte 119). Layer video/audio/effects switches (byte 39 bits 1, 2, 4), blend modes Add/Screen/Overlay/Difference, auto-orient, light type. Comp NTSC rates as exact fractions, frame count, 8-bit background. Mask modes, open path bit and tangents. Shape groups (rect, path, fill, stroke, round corners, gradient fill, group position). Text paragraph and style runs, justification, box, tracking. Marker duration and strings. Camera position and point of interest, light intensity. Effect values: checkbox, point, angle, layer control (tdpi), colour defaults. Fields the corpus marks as hypothesis or undecided are not decoded. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…g of the new accessors Exact-value tests: interpolation sides, ease slots, plain and spatial templates, anchor divisor, disabled expression, layer switches, blend codes, NTSC time base, 8-bit background, camera/light, solid colour, effect defaults and values, mask modes, open and curved paths, shape layer items, text runs/box/justification/tracking, marker strings. Robustness: every fixture through the new accessors, damaged tdb4 layouts (all component counts and template flags), damaged marker/text/layer-reference chunks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…the refreshed undecoded list New field tables (field, chunk path, offset, type, meaning, evidence, confidence) for the keyframe sides and ease, plain and spatial templates, anchor divisor, expression switch, layer switches, blend modes, NTSC time base, mask modes and tangents, shape layers, text runs, markers, cameras and lights, effect values. Corpus counts corrected (139 files of batches 1 and 2, 103 fixtures), fixtures without a case listed, method kept. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, effects, comp, masks, shapes, text, camera, light, markers, audio and sequence footage) Container byte-identical to the generated files; the XMP trailer is the base project's packet and the local path and machine name in the footage alias JSON are replaced by neutral text of the same length. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…d phase, time remap, defaults, masks, shapes, text styles, camera, light, markers, footage) with tests Additive typed accessors, each checked against the MANIFEST value of its case: type-major multi-component ease, colour key distance, exact stretch ratio and n/25600 times, footage time-base out points, Time Remapping state, comp shutter phase and display start, Point default as a layer fraction, Layer Control self versus None, dropdown count and selection, one mkif per mask and mode None, mask vertices in layer pixels, polystar and radial gradient records, right justification, faux bold and italic, caps and leading, camera zoom and depth of field, light colour and cone, marker label and cue data, footage duration, frame rate, bit depth, file size, sample rate and sequences. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…decoded fixtures, ease components, stretch ratio, display start, sequence frame count) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…h 3) and the refreshed undecoded list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nsform keys, expressions, report) L3 crate on top of effectcraft-aep and effectcraft-project: folders, compositions (exact frame rates, work area, background, pixel aspect, motion blur), solid/null/adjustment/ footage/precomp layers with switches, timing, blend modes and parents, the five Transform properties with keyframes (interpolation, ease, spatial tangents) and expressions as text. Everything else is counted in a serde ImportReport; losses are refused unless allowed. Tests: the synthetic fixtures with exact values, truncation/bit-flip/hostile-value fuzzing. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Registered with cmd! next to file.importLottie: params path, allowLosses, dryRun; one undoable
edit, opens the first composition, returns {folder, comps, items, report}. Menu entry, file
dialog filter, automation path confinement, translations for the ten catalogs, tests incl. undo.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… and agents Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ase and display start Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tatement precisely The container table claimed that all payloads are plain; the high-entropy body of opti is not understood and its compression is open, so the row now says that and names the probes behind it. The clean-room sentences now say that no source code, specification or format documentation of another reader was used, instead of the broader 'no third-party parser was read'. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…atement aep-format.md now points to the importer instead of calling it future work, aep-import.md counts 151 fixtures and no longer claims that no other reader was 'consulted'; it says that no source code or format documentation of another reader was used and that the evidence is the generated corpus. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 14, 2026
Open
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
|
Merged the updated feat-aep-container (which already contains current upstream/main) into this branch; upstream/main itself was then already included. Only conflict: Cargo.lock (kept both dependency entries), plus a Cargo.lock version sync commit. Checks run locally: |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
Contributor
Author
|
Superseded by #1869, which contains this work and everything since in one branch on current main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #190. Stacked on #1377 (the
effectcraft-aepcrate PR, draft): this branch contains its commits, so please review only the last 7 commits (importer crate,file.importAepcommand, docs, the merge of the crate branch with its adaptation, and two small docs commits). I will rebase this PR once the crate PR is merged.What this adds
A narrow
.aepimporter, on purpose: correctness over breadth, and an explicit report for everything it does not handle.effectcraft-aep-import(L3, aboveeffectcraft-project, builds for wasm32, no file access of its own).import(&mut Project, bytes, &ImportOptions)and a dry runanalyze(...).file.importAep {path, allowLosses?, dryRun?}, menu File > Import > After Effects Project..., file-dialog filter, automation path confinement, translations in all ten catalogs. It is one undoable edit, wrapped in a folder named after the file, and it opens the first composition.allowLossesis not set, the project is left untouched and the command returns the report. I defined this convention because the repo had none yet; happy to align it with whatever you prefer.What is imported
Folders, compositions (size, exact frame rate incl. 29.97 / 23.976, duration, work area, background, pixel aspect, motion blur, shutter, renderer, display start), solid / null / adjustment / footage / precomp layers (name, in/out/start/stretch as exact rationals, switches, label, blend modes Normal / Multiply / Add / Screen / Overlay / Difference, parent), Anchor / Position / Scale / Rotation / Opacity as values or keyframes (time, interpolation in/out, ease speed and influence per dimension, spatial tangents, roving, label), expressions as source text with their enabled flag, footage as a link or a missing-footage placeholder.
What is only reported (counts per category, never silently dropped)
Text, shape, camera and light layers; effects, masks, markers, time remapping; other blend modes and transform properties; simplified keyframes; parent loops and precomp loops (cut and reported); damaged data. The report also carries a standing list of things the reader cannot see yet (track mattes, layer styles, frame blending, footage duration and frame rate).
Checks
Windows 11, Rust 1.99.
effectcraft-aep-import: they assert exact imported values on the synthetic fixtures (sizes, rates, timing, layer flags, position values at given times, keyframe counts and interpolation, stretch 50 % / 150 %, fractional in-points, NTSC rates, per-dimension Scale ease), plus robustness tests (every fixture truncated at about 40 places, bit flips, hostile values inside valid structure such as NaN / inf / zero time bases / self-parenting / a precomp containing itself). Fuzzing found one real bug (NaN or huge static values reached the project); it now falls back to the default and is reported as damaged data, with a regression test.cargo fmt --all --check,cargo clippy --workspace --all-targets --release -- -D warnings,cargo xtask layers,assets,wasm: pass.cargo build --locked -p effectcraft-aep-importworks.footage_moved_with_its_project_is_found_on_open,relinking_one_file_finds_the_others_that_moved_with_it) fail on Windows on unmodifiedmain; they are fixed by #1267: three relink path-format test failures on Windows #1272 and unrelated to this PR.cargo test --workspace; CI covers it.Next: exporter
The exporter (EffectCraft project to
.aep) is planned as a separate PR on top of the lossless writer in the crate PR. Its fidelity check is After Effects itself: write the file, open it in After Effects, read the project back through its scripting interface and compare. It will start with the importer's subset (compositions, solids, transforms and keyframes).