Skip to content

reel export-timeline: push-ins and crops travel to the editor as keyframed transforms - #90

Open
IsraelWebDev wants to merge 1 commit into
mainfrom
feedback/2026-12-02-fcpxml-push-ins
Open

IsraelWebDev wants to merge 1 commit into
mainfrom
feedback/2026-12-02-fcpxml-push-ins

Conversation

@IsraelWebDev

Copy link
Copy Markdown
Owner

Why

AI editing tools now hand their rough cut to a desktop editor as an editable timeline, not a flat MP4. Editors keep the tool's decisions and finish by hand. Examples:

I ran reel export-timeline (#89) on today's promo. It printed frame motion not carried over, so push-ins reached the editor as static full frames. Push-ins are funkbox's signature move on screen recordings and code cards. A cover crop (for example a 16:9 recording in a 9:16 reel) was also lost: the editor letterboxed it while the render crops it.

What changed

  • funkbox/reel/fcpxml.py: each still or video shot with none or frame motion gets an adjust-transform (scale and position) when the render's window differs from the editor's default "fit" conform.
    • The values come from the same framing.window_for() the render uses.
    • A frame push-in is keyframed every KEY_STEP = 5 frames, plus the last frame, at the render's own per-frame progress. Easing and keys are therefore sampled, not approximated by the editor's curves.
    • A static crop is one transform with no keyframes.
    • Looping clips get keyframes in each piece's own time, so the push-in continues across the repeats.
    • Connected music now goes after the clip's adjustments, which is the FCPXML element order.
  • Still named in not carried over:: parallax and Ken Burns motion, and padding colour or blur (a new note; the editor pads with black).
  • docs/reel.md: the export section says what travels now.

Units: FCPXML position puts the origin at the centre, with y up and the frame height as 100 units. Scale is relative to the fitted clip.

How it was tested

  • 6 new tests in tests/reel/test_export_timeline.py:
    • pose maths: identity, a quarter window, and a 16:9 cover crop
    • push-in keyframe times and values
    • keyframes equal the render's window mid-push with an out ease
    • a static cover crop, and no transform on a still that already fits
    • music still nested after the transform
    • looping-clip keyframes in each piece's local time
  • Full suite: FUNK_GL_BACKEND=egl python -m pytest -q: 1608 passed, 26 skipped.
  • Not tested: importing into Final Cut Pro or DaVinci Resolve. Neither is available on the CI runner. The unit conventions above follow the FCPXML spec as I understand it, so please open one export in an editor and check a push-in before merging.

From the 2026-12-02 promo run's product feedback.


Generated by Claude Code

…orms

A shot's cover crop (or focus) and its `frame` push-in now travel to the editor as
an adjust-transform (scale and position) on the clip, keyframed every 5 frames for
a push-in, computed from the same window_for() the render uses. Looping clips get
keyframes in each piece's own time, so the push-in continues across the repeats.
Parallax and Ken Burns motion and padding colour/blur are still named in the
`not carried over:` notes.

From the 2026-12-02 promo run's product feedback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RsXeWHHzmpeAMrPwxncW2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants