Render a Kodecz video
renderConverts a Kodecz video folder to MP4 using GPU NVENC or CPU x264, returning the JSON result; run check first.
Instructions
Render a Kodecz video folder to MP4 (GPU with NVENC when there is one, CPU with x264 when not). Returns the render's JSON result line. Run check first.
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": {
"folder": "<folder>",
"id": "<id>",
"output": "<output>"
},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id in the page's <script type="application/json" id="kodecz"> block | |
| cpu | No | Render on the CPU even when there is a GPU | |
| from | No | First frame to render | |
| hevc | No | HEVC instead of H.264 (GPU only) | |
| alpha | No | Transparent layer as raw HEVC with alpha (GPU only, no audio) | |
| folder | Yes | Video folder (the one with index.html), absolute or relative to the working directory | |
| frames | No | How many frames to render from `from` | |
| output | Yes | Output file (.mp4; .hevc with alpha) |