Skip to content

reel export-timeline: the cut as FCPXML for Final Cut Pro and Resolve, captions as .srt - #89

Merged
IsraelWebDev merged 1 commit into
mainfrom
feedback/2026-12-01-fcpxml-export
Dec 2, 2026
Merged

IsraelWebDev merged 1 commit into
mainfrom
feedback/2026-12-01-fcpxml-export

Conversation

@IsraelWebDev

Copy link
Copy Markdown
Owner

Observation

Agent-driven video editors released this autumn hand the agent's cut back to the editor a creator already uses:

Until now a funkbox reel could only come out as a rendered MP4.

What changed

  • funkbox/reel/fcpxml.py: export_timeline() / write_timeline() build an FCPXML 1.10 project from the reel's resolved timeline (the same beat-snapped, whole-frame spans a render uses):
    • stills become <video> items and clips become <asset-clip>, each with its trim and length; a loop clip is repeated to fill its shot; a clip that runs out leaves a named <shot> hold gap
    • colour, grid and shader sources and the end card become named gaps
    • the music bed sits under the whole cut as a connected clip (lane -1)
    • a sidecar .srt holds one cue per captioned shot, with the approved copy text, timed to that shot
    • notes lists, shot by shot, what is not carried over: framing and motion, transitions, speed ramps, overlays, the end card and the voiceover
  • CLI: funkbox reel export-timeline X.reel.json -o out/X.fcpxml [--format 16x9] prints the paths and one not carried over: line per note.
  • Docs: a new section in docs/reel.md, "Finish the cut in another editor (FCPXML)", plus a line in the quick-start command list.
  • No MCP tool was added, so docs/catalog.json and the tool count are unchanged. Nothing under promo/ changed.

How it was tested

  • tests/reel/test_export_timeline.py (10 tests): spine offsets and durations match the timeline's frames; how stills, clips and drawn sources map; media paths and the version; a loop repeats to fill its shot; a clip that runs out leaves a gap; SRT cues carry the approved text; the notes; music under the cut; the .srt is written next to the .fcpxml; the CLI end to end.
  • Full suite: FUNK_GL_BACKEND=egl python -m pytest -q gives 1602 passed, 26 skipped (software OpenGL, 4-core CPU).
  • ruff check and ruff format --check are clean on the changed files.
  • Manual run on the 2026-12-01 promo's reel: the output parses as XML, holds 5 clips plus a gap for the end card, and its 18.50 s cut and 4 caption cues match the render.
  • Not tested: importing the file into Final Cut Pro or Resolve, because neither runs in this environment. Please try an import before merging.

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


Generated by Claude Code

…oved captions

Writes a reel's resolved timeline (beat-snapped, whole frames) as an FCPXML 1.10
project for Final Cut Pro and DaVinci Resolve: each shot's source file with its
trim and length, looping clips repeated to fill their shot, the music bed under
the cut, and a sidecar .srt with each shot's approved caption. Render-time work
(framing, motion, transitions, overlays, end card, voiceover) is not carried
over and is listed line by line.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RsXeZgWqrsY2YgV4TjUdJ
@IsraelWebDev
IsraelWebDev merged commit 83873fe into main Dec 2, 2026
4 checks passed
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