fcpxml_build_timeline
Create a Final Cut Pro project from media files, titles, and markers as FCPXML, then import it into the app.
Instructions
Create a new FCP project from media files, titles and markers, as FCPXML, and import it.
Example primary: [{"path": "/clips/a.mov", "source_in": 2, "duration": 5}, {"text": "Chapter 2", "duration": 3}, {"path": "/clips/b.mov"}]. Example connected: [{"path": "/music.mp3", "at": 0, "lane": -1}].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate, e.g. 25, 29.97, 30. Defaults to the first video clip's. | |
| width | No | Frame width. Defaults to the first video clip's. | |
| height | No | Frame height. Defaults to the first video clip's. | |
| library | No | Name of an open library, or path to a .fcpbundle (opened if closed, created if missing). Default: the open library when exactly one is open. | |
| markers | No | Markers, to-dos and chapter markers. | |
| primary | Yes | Primary storyline in order: media clips, gaps (duration only) and titles (text). | |
| connected | No | Clips/titles connected at a timeline position: B-roll and titles above, music/VO below. | |
| background | No | Hex colour behind clips that don't fill the frame (e.g. "#FFFFFF" around vertical footage fitted into 16:9). Ends where a trailing gap/end card starts. | |
| event_name | No | Event to put the project in (created if missing). | fcp-mcp |
| output_path | No | Where to save the .fcpxml. Default: ~/Movies/fcp-mcp/<project>.fcpxml | |
| project_name | Yes | Name of the new project. | |
| start_timecode | No | Timeline start, e.g. "01:00:00:00". Default 0. | |
| import_into_fcp | No | Open the file in Final Cut Pro after writing it. |