exr_sequence_to_video
Convert EXR image sequences to MP4 or MOV video with built-in color space conversion and bundled ffmpeg encoding, so no separate ffmpeg install is required.
Instructions
Convert an EXR image sequence to video (mp4 or mov).
Reads RGB channels from each EXR frame, applies color space conversion, and encodes
with the bundled ffmpeg binary — no external ffmpeg installation needed.
Color pipeline: decode input gamma/primaries → Rec.709 linear working space
→ exposure → tonemap → convert to output primaries → encode output gamma → uint8.
RGB is clamped to 0–1 and quantized before encoding, including for ProRes.
The selected output color space is reported in the result; color tags are not set explicitly.
Codec options:
- h264: H.264, .mp4 — widely compatible, good for dailies and review
- h265: H.265, .mp4 — better compression, requires modern player support
- prores_hq: Apple ProRes HQ, .mov — review proxy
- prores_4444: Apple ProRes 4444, .mov — review proxy with optional alpha. Alpha is encoded when auto-detection
finds an A channel or channels names a packed RGBA or layer with .A; three explicit
channel names (R, G, B) produce video without alpha.
Typical usage:
- ACEScg EXR → sRGB review video: input_colorspace='acescg', output_colorspace='srgb'
- Linear EXR → sRGB review video: input_colorspace='linear', output_colorspace='srgb'
- sRGB EXR → sRGB review video: input_colorspace='srgb', output_colorspace='srgb'
Use tonemap='reinhard' when the source has HDR values well above 1.0.
Frames are sorted by the last numeric run in the filename (e.g. frame.0001.exr, shot.10.beauty.exr).
The pattern must select one sequence with unique frame numbers. Missing frames are skipped;
preflight reports the duration estimate with and without the gaps.
Each frame is rendered at its displayWindow size; frames whose displayWindow differs from
the first frame are skipped. frame_errors lists at most 10 skipped frames and
frame_error_count gives the total. The output file is only replaced
after ffmpeg succeeds. Cancellation before replacement leaves the existing output in place.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory": "<directory>",
"output_path": "<output_path>"
},
"name": "exr_sequence_to_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | CRF quality for h264/h265 (0–51, lower = better quality / larger file). null uses defaults: h264=18, h265=20. Ignored for prores codecs. | |
| fps | No | Frames per second | |
| codec | No | Video codec: 'h264' (mp4), 'h265' (mp4), 'prores_hq' (mov), 'prores_4444' (mov) | h264 |
| scale | No | Output resolution scale relative to input (e.g. 0.5 = 50%, 2.0 = 200%) | |
| pattern | No | Filename glob pattern, e.g. '*.exr' or 'beauty.*.exr' | *.exr |
| tonemap | No | HDR tone compression operator applied before output: 'none' (clamp only, default), 'reinhard' (soft roll-off x/(1+x)) | none |
| channels | No | Channel names for RGB output. null = auto-detect. Use 3 separate names (e.g. ['R','G','B'] or ['beauty.R','beauty.G','beauty.B']) or 1 packed name ending in RGB/RGBA (e.g. ['RGBA'] or ['beauty.RGBA']), or 1 layer name (e.g. ['beauty'] for beauty.R/G/B, plus beauty.A when present). The A of a packed or layer name is used as alpha for prores_4444. | |
| exposure | No | Exposure multiplier applied before tone mapping | |
| directory | Yes | Directory containing the EXR sequence | |
| part_index | No | Part index to read (0-based) | |
| output_path | Yes | Absolute path for the output video file (.mp4 or .mov) | |
| input_colorspace | No | Color space of the source EXR: 'linear' (Rec.709 linear), 'acescg' (AP1 linear), 'srgb' (gamma-encoded) | linear |
| output_colorspace | No | Output RGB encoding for a review proxy: 'srgb' (default), 'linear' (Rec.709 linear), or 'acescg' (AP1 linear) | srgb |