# Multitrack Timeline Renderer > Render a video from tracks of clips, stills, sound and titles: trims, fades, crossfades and gain. Renders a Reelcraft timeline into one MP4 video (H.264/AAC) on the usefulweb server. The timeline lists video, image, audio and text tracks; each clip has a start, an in-point and a length, a gain in dB, fade-in and fade-out and an optional crossfade or dip-to-black transition from the clip before it. Pictures are fitted into the canvas (letterboxed or cropped), stacked with the top track on top, titles are drawn as text and all sounds are mixed without normalisation. Send the timeline as JSON and up to eight media files; the report lists every clip as rendered. Part of usefulweb.app (https://usefulweb.app/). Part of [Reelcraft](https://reelcraft.usefulweb.app/) (ownerApp: reelcraft). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://reelcrafttimelinerender.usefulweb.app/ (interactive tool at https://reelcrafttimelinerender.usefulweb.app/tool) - JSON API: POST https://reelcrafttimelinerender.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://reelcrafttimelinerender.usefulweb.app/api/v1/tool) - OpenAPI: https://reelcrafttimelinerender.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://reelcrafttimelinerender.usefulweb.app/mcp - tool `reelcraft_timeline_render` ## Inputs - timeline (textarea, required): Timeline (JSON) - width, height (even, ≤ 1920, ≤ 1920×1080 pixels), fps (24/25/30), background (#rrggbb), tracks [{kind: video|image|audio|text, name, gain, muted, hidden, clips:[{src: 1–8, start, in, dur, gain, fadeIn, fadeOut, transition:{kind: crossfade|dip, dur}, mute, fit: contain|cover} or {text, pos: top|center|bottom, size: s|m|l, color, box}]}]. The first track is drawn on top. Reelcraft writes this for you. - media1 (file): Media file 1 (src 1) - Video (MP4, MOV, MKV/WebM, AVI, MPEG-TS), audio (MP3, WAV, FLAC, Ogg, M4A, AIFF) or a still (PNG, JPEG, WebP); 189 MB for all files together. Processed in a private temporary folder that is deleted afterwards; the result can be downloaded for about 2 hours. - media2 (file): Media file 2 (src 2) - media3 (file): Media file 3 (src 3) - media4 (file): Media file 4 (src 4) - media5 (file): Media file 5 (src 5) - media6 (file): Media file 6 (src 6) - media7 (file): Media file 7 (src 7) - media8 (file): Media file 8 (src 8) ## Method - The timeline is validated first: clips on a track never overlap (later clips move right), lengths, fades and gains are clamped, and the whole video is at most 180 s. - Every media clip is read from its in-point for its length; when the source ends early the last frame is held (sound: silence). Pictures are scaled into the canvas — contain = letterboxed with transparent bars, cover = cropped — and overlaid at their start time, from the lowest track to the first (top) track. - Fades work on the clip’s transparency, so a faded clip reveals the tracks below (or the background colour). A crossfade of d seconds keeps the previous clip running d seconds past its out-point while the next fades in over it; its sound fades out over the same seconds. A dip fades the previous clip out and the next in, d seconds each. - Titles are drawn with ffmpeg drawtext from a text file (no expansion), wrapped to the width, in a size relative to the shorter side of the canvas. - Sounds are resampled to 48 kHz stereo (mono copied to both sides at full level), trimmed, changed by clip gain + track gain (dB), faded, delayed to their start and summed without normalisation; a silent track is added when the timeline has no sound. Encoding: libx264 (preset veryfast, CRF 23, yuv420p) and AAC 160 kb/s 48 kHz stereo in MP4 with faststart; the mix peak is measured afterwards with volumedetect. ## Limits - The mix is not limited: when several loud sounds play at once the peak can reach 0 dBFS and clip — the report shows the peak, lower the gains if it warns. Titles use the server’s default sans-serif font.