Opentoonz Render Video
opentoonz_render_videoRender a scene to an MP4 video by muxing frames with ffmpeg, optionally adding AAC audio, and setting CRF/scale for quality and size.
Instructions
Render a scene and mux the frames into an MP4 with ffmpeg.
audio (optional) is a path to an external soundtrack (mp3, wav, ...). It is encoded as AAC and cut to the video's length. OpenToonz's own audio columns cannot be reached from the scripting API, so audio always comes from a file. crf (0-51, lower is better) trades quality for file size, and scale (a positive factor, e.g. 0.5) resizes the video.
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": {
"workspace": "<workspace>",
"scene": "<scene>"
},
"name": "opentoonz_render_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | ||
| fps | No | ||
| audio | No | ||
| scale | No | ||
| scene | Yes | ||
| out_name | No | video | |
| workspace | Yes |