Rendering in a container

frametrellis-render is the renderer that the editor uses for exports. It also works on its own, without a display, and is published as a container image in GitHub Packages:

ghcr.io/sanskarin/frametrellis-render

Use it to render FrameTrellis projects on a server, in a CI pipeline or on any machine with Docker or Podman (Linux x86-64), without installing FrameTrellis. Each FrameTrellis version has an image tagged with that version (1.0.0); latest is the newest stable version.

Rendering a project

Mount the folder that holds the project and its media at /work, and run the image as your own user so that the video belongs to you:

docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/work" \
    ghcr.io/sanskarin/frametrellis-render:1.0.0 \
    --project /work/my-project.ftproj --output /work/my-video.mp4

FrameTrellis finds media relative to the project file, so keep the media in the mounted folder or below it. The options are the export settings of the editor:

OptionMeaningDefault
--project <file>The project to render (.ftproj)required
--output <file>The MP4 file to writerequired
--short-side <pixels>Scale so that the shorter side has this many pixels; 0 keeps the project size0
--crf <value>Quality, from 0 (best) to 5120
--preset <name>Encoder speed, from ultrafast to veryslowmedium
--audio-bitrate <kbps>AAC bitrate192
--no-audioWrite a video without sound

The output is H.264 video with AAC audio, the same as an export from the editor, and it is checked before it is kept. If rendering fails or is cancelled, no partial file is left behind.

Discovering export presets (v1.4 development)

To inspect the editor's available export profiles from scripts without opening a project or starting a render:

frametrellis-render --list-presets

The command writes a JSON object with a presets array. Each entry includes id, name, description, shortSide, crf, speedPreset, audioBitrateKbps and avoidUpscaling. The list includes the new 1080p and 4K creator-quality profiles. This command only reports preset metadata; it does not start a render or apply a preset automatically. Use the ordinary export options for actual rendering.

This feature is part of the next development milestone, not the published v1.3.1 stable binaries.

Inspecting a project (v1.3.0 and later)

FrameTrellis v1.3.0 and later support a read-only, headless inspection command:

frametrellis-render --inspect-project --project /work/my-project.ftproj

It emits one @ft {…} JSON protocol line named project_inspection. For example:

@ft {"event":"project_inspection","name":"My Edit","trackCount":4,"videoTrackCount":2,"audioTrackCount":2,"clipCount":3,"mediaCount":4,"usedMediaCount":3,"unusedMediaCount":1,"missingMediaCount":1,"missingUsedMediaCount":0,"durationFrames":300}

The event's counts have precise meanings:

FieldMeaning
trackCount, videoTrackCount, audioTrackCountTotal tracks and counts by track kind
clipCountTotal timeline clips across all tracks
mediaCountTotal media-bin entries
usedMediaCountDistinct media entries referenced by at least one clip
unusedMediaCountMedia entries not referenced by any clip
missingMediaCountEntries whose files are absent or are not regular files
missingUsedMediaCountMissing entries currently referenced by timeline clips
durationFramesSequence length at the project's frame rate, in frames
subtitleCueCount, subtitleBurnInNumber of subtitle cues and whether preview/video burn-in is enabled (format-v6 development builds)

A missing unused file increases missingMediaCount but not missingUsedMediaCount. The command inspects file metadata only. It does not start MLT, decode footage, render video, write project files or include source-file paths in the successful summary. A structurally valid project returns exit code 0 even if some media is missing; use missingMediaCount to determine whether relinking may be needed. A malformed or missing project returns a nonzero exit status and a structured error event. Do not combine --inspect-project with --output.

The read-only inspection command is included in the v1.3.x stable render helper, but not in older v1.2.2 or v1.0.0 binaries. Subtitle-specific fields belong to newer format-v6 development builds rather than the v1.3.x stable editor.

Input and output safety

Development builds supporting format v6 also render sequence subtitles when burnIn is enabled. The image includes DejaVu/Noto Core fonts and Qt's offscreen platform. Install additional fonts for scripts they do not cover. Use the same fonts on editing and rendering machines to keep line wrapping consistent. Captions do not extend the video; disabling burn-in produces video suitable for a separate SRT sidecar. This is outside the stable image's existing feature set.

For regular exports, the render helper rejects output paths that would replace the opened project document or any referenced source media, including canonical-path aliases. When --watch-stdin is enabled, only a complete cancel line (LF or CRLF), or closure of stdin, requests cancellation. Partial words and other commands are ignored.

Checking the image

docker run --rm ghcr.io/sanskarin/frametrellis-render:1.0.0 --version
docker run --rm ghcr.io/sanskarin/frametrellis-render:1.0.0 --self-test /tmp/self-test

The self-test generates sample media, builds and saves a small project, renders it and checks the result. Development self-tests also check that subtitle pixels survive encoding. Every line should start with PASS. The release workflow runs the same self-test, and renders the project it saves from a mounted folder, before an image is published.

What is in the image

The image is based on Debian 13, with Qt, MLT and FFmpeg from Debian. Only the MLT modules the renderer needs are loaded. /usr/share/doc/frametrellis contains the FrameTrellis license, the third-party notices and the list of Debian packages with their versions; the license of each Debian package is in /usr/share/doc/<package>/copyright, and its source code is available from the Debian archive. See Licensing.

To build the image yourself from a FrameTrellis source tree:

docker build -f packaging/container/Dockerfile -t frametrellis-render .