Render video (background, chunked)
ae_render_videoRender After Effects compositions to MP4 as background chunked jobs with light, draft-preview, or final modes; re-render changed ranges and poll job status.
Instructions
Render a comp to MP4 in the BACKGROUND. mode previa = Draft Settings in one chunk to SEE a change fast; mode turbo = final render using the whole PC; redo [a,b] = re-render only the chunks that changed (same outDir). Default mode leve = the studio's render that keeps the PC usable: aerender in chunks (default 30 s; 15 s for Advanced 3D; chunkSec 10 for heavy blur/video; never under 5 s, opening aerender alone costs ~21 s) with multi-frame rendering on, up to 2 at once at BelowNormal priority with 8 threads left free and a RAM gate (one at a time while a process named in TUIFT_GAME_PROCESSES runs), -mem_usage 20 30, chunks joined without re-encoding and tagged BT.709, optional audio mux with loudness read-out, then checks for black and frozen stretches. Returns a job id at once — poll ae_render_status. Saves the project first. Avoid editing the project while it renders; keep bridge calls light.
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": {
"comp": "<comp>"
},
"name": "ae_render_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | Yes | ||
| mode | No | leve (default): light render that never locks the PC. previa: Draft Settings in ONE chunk for the range — to SEE a change in minutes, not to deliver. turbo: only for the final render when nobody is using the PC — Best Settings, more memory, normal priority, chunks 2× longer. | |
| redo | No | [start, end] seconds that CHANGED. With the same outDir, range and chunkSec of the previous job, only the chunks touching this interval are deleted and rendered again; the rest is reused and the master is rejoined. | |
| audio | No | Final mix (wav) to mux into the MP4. | |
| range | No | [start, end] seconds; default work area. | |
| outDir | No | Output folder (default: new folder per job under the temp work dir). Always a NEW folder per video. | |
| chunkSec | No | Chunk length in seconds. | |
| instance | No | After Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live. | |
| redoCena | No | Same as redo, by scene name from tuift.cena: 'S03', 'S03_PROVA' or a list. Same outDir, range and chunkSec of the previous job. | |
| software | No | Multi-frame rendering off for the whole job (~5x slower). Not needed for failures: a chunk that fails is retried without MFR on its own. Use only with redo for a stretch that came out black. | |
| outputModule | No | Output module template (default 'H.264 - Match Render Settings - 40 Mbps'). |