FFmpeg vs video API, the same edit as a timeline
Compare one video edit sent as an FFmpeg command and as a JSON timeline on Rendobar, with measured render time, output size and cost per render.
We rendered one edit (trim, upscale to 1080p, logo in the corner, a title bar) on Rendobar two ways, as an FFmpeg command and as a JSON timeline, three times each. The FFmpeg command cost under a cent a render. The same edit as a timeline cost several times that when we measured it, and costs 1.3 to 2.2 times the command at today’s compose price. Both run on one account, so the real choice is how you want to describe the edit.
Two ways to describe one edit
The usual framing of FFmpeg vs a video API bundles two decisions. Who runs the servers is one. Whether you describe the edit as an FFmpeg command or as a timeline is the other. On Rendobar the first answer is always “we do”, and the second is “either”:
| Rendobar job | How you describe the edit | Bills by |
|---|---|---|
ffmpeg | The FFmpeg command line, unchanged | Seconds of compute the job uses |
compose | A JSON timeline of tracks and clips | Seconds of video it returns |
Both take the same API key, draw on the same balance and deliver to the same connected buckets. Which Rendobar job fits each video task covers the other job types around these two.
The edit as an FFmpeg command
The job is a realistic social cut: take 4 seconds of a clip starting at 1 second, scale it to 1920x1080, put a logo in the top right and a title on a translucent bar near the bottom. The source is sample.mp4, a public 5-second 1280x720 H.264 clip at 24 fps, and the logo is a 6000x6000 PNG of the Rendobar mark.
ffmpeg -ss 1 -t 4 -i sample.mp4 -i logo.png -filter_complex \ "[0:v]scale=1920:1080:flags=lanczos,drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:text='Launch week':fontsize=72:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=20:x=(w-text_w)/2:y=h-th-80[bg];[1:v]scale=160:-1[lg];[bg][lg]overlay=W-w-48:48[v]" \ -map "[v]" -map 0:a -c:v libx264 -preset veryfast -crf 23 \ -c:a aac -b:a 128k -movflags +faststart out.mp4-ss before -i seeks the input, -t 4 caps it at 4 seconds, drawtext burns the title with its box, and the logo is scaled to 160 px wide before overlay places it 48 px in from the top right corner. The text recipe and the watermark recipe run each piece on its own.
The same edit as a command and as a timeline
We ran the edit on Rendobar six times on 2026-09-27: the command above unchanged as an ffmpeg job, and the same layout written as a compose timeline, three runs each. Both read the source and logo from their public URLs. Time here is the API’s own measure, from submit to a finished, downloadable output, so it includes fetching inputs, starting the render and storing the file.
| Route | Runs | Time to finished file | Cost per render | Output bytes |
|---|---|---|---|---|
Rendobar, ffmpeg command | 3 | 5.4 to 15.9 s | $0.0046 to $0.0077 | 998,390 every run |
Rendobar, compose timeline (previous engine) | 3 | 30.9 to 67.5 s | $0.030 to $0.034 | 966,683 every run |
Two things in that table are solid and one is noise. The byte counts repeated exactly on every run of each route, because FFmpeg is deterministic. The cost gap holds too. Across three runs each, the timeline averaged about 5.4 times the command’s cost, because Rendobar billed the seconds of compute a job used and every timeline render ran longer. The timings swung nearly 3x within the command route alone, so read them as a range, not a ranking.
Corrected on 2026-10-18: compose moved to a new engine and now bills per second of the video it returns, $0.04 a minute on every plan, with a 15-second minimum per render. The timeline rows above are the 2026-09-27 runs, billed by compute seconds, which is where the 5.4x came from. At today’s price this 4-second edit costs $0.010 a render, 1.3 to 2.2 times the command. We have not re-run the edit on the new engine, so the times in the table are the old ones.

The frames line up. The logo sits in the same corner at the same size and the title bar lands in the same spot. The typeface differs, and that is on us: we named DejaVu Sans in the timeline, the compose engine loads fonts by Google Fonts family name, DejaVu is not one, and the render drew a fallback without an error. The FFmpeg route has the same trap in a different form, as custom fonts in a video API showed. A frame catches it and an exit code does not.
What the timeline bought was the authoring. The logo is “160 px box, 94% across, 12% down” and the title is “centered at 88% down”. There is no filter graph to get wrong, no W-w-48, no label wiring, and the same JSON renders at any output size. For a one-off edit you already know as a command, that premium buys nothing. For a template that product code fills in a thousand ways, it pays for itself in code you never write.
Run the edit on Rendobar
The command you tested locally runs unchanged on Rendobar’s FFmpeg API, and a job runs to its plan’s job limit, so a longer cut of the same edit needs no different setup. What to check in an FFmpeg API before you build on it covers the limits that matter. The Free plan starts with a $5 credit grant, and Pro is $9 a month with $5 of credit included and jobs up to 9 hours.
The command, with the same inputs mapped by name:
The edit from this post as an ffmpeg job. source and logo.png are the names the command reads.
import { createClient } from "@rendobar/sdk";
const rb = createClient({ apiKey: process.env.RENDOBAR_API_KEY });
const job = await rb.jobs.run({type: "ffmpeg",inputs: { source: "https://cdn.rendobar.com/assets/examples/sample.mp4", "logo.png": "https://cdn.rendobar.com/assets/brand/logo-mark.png",},params: { command: "ffmpeg -ss 1 -t 4 -i source -i logo.png -filter_complex " + "\"[0:v]scale=1920:1080:flags=lanczos," + "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:text='Launch week':fontsize=72:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=20:x=(w-text_w)/2:y=h-th-80[bg];" + "[1:v]scale=160:-1[lg];[bg][lg]overlay=W-w-48:48[v]\" " + "-map \"[v]\" -map 0:a -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 128k -movflags +faststart out.mp4",},});
console.log(job.output?.file?.url, job.cost?.formatted);Install with npm i @rendobar/sdk. jobs.run() submits and waits, so it returns the finished job in one call.
curl -X POST https://api.rendobar.com/jobs \-H "Authorization: Bearer $RENDOBAR_API_KEY" \-H "Content-Type: application/json" \-d @- <<'EOF'{"type": "ffmpeg","inputs": { "source": "https://cdn.rendobar.com/assets/examples/sample.mp4", "logo.png": "https://cdn.rendobar.com/assets/brand/logo-mark.png"},"params": { "command": "ffmpeg -ss 1 -t 4 -i source -i logo.png -filter_complex \"[0:v]scale=1920:1080:flags=lanczos,drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:text='Launch week':fontsize=72:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=20:x=(w-text_w)/2:y=h-th-80[bg];[1:v]scale=160:-1[lg];[bg][lg]overlay=W-w-48:48[v]\" -map \"[v]\" -map 0:a -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 128k -movflags +faststart out.mp4"}}EOFReturns immediately with a job id. Poll GET /jobs/{id} or register a webhook rather than blocking on the request.
The same edit as a compose timeline. Three tracks stack bottom to top: the trimmed clip, the logo, the title. This version names Inter, a bundled family, where our measured runs named DejaVu Sans and got a fallback.
The same edit as a compose timeline: a trimmed clip, a logo and a boxed title on three tracks.
import { createClient } from "@rendobar/sdk";
const rb = createClient({ apiKey: process.env.RENDOBAR_API_KEY });
const job = await rb.jobs.run({type: "compose",params: { schemaVersion: 1, output: { format: "mp4", resolution: { width: 1920, height: 1080 }, fps: 24, crf: 23, encoderPreset: "veryfast", }, timeline: { tracks: [ { name: "video", clips: [{ asset: { type: "video", src: "https://cdn.rendobar.com/assets/examples/sample.mp4", trim: { from: 1, to: 5 }, } }] }, { name: "logo", clips: [{ asset: { type: "image", src: "https://cdn.rendobar.com/assets/brand/logo-mark.png" }, transform: { position: { x: "94%", y: "12%" }, size: { width: 160, height: 160 }, fit: "contain" }, }] }, { name: "title", clips: [{ asset: { type: "text", text: "Launch week", style: { fontFamily: "Inter", fontSize: 72, color: "#FFFFFF", background: "#00000080", align: "center" }, }, transform: { position: { x: "50%", y: "88%" } }, }] }, ], },},});
console.log(job.output?.file?.url, job.cost?.formatted);Install with npm i @rendobar/sdk. jobs.run() submits and waits, so it returns the finished job in one call.
curl -X POST https://api.rendobar.com/jobs \-H "Authorization: Bearer $RENDOBAR_API_KEY" \-H "Content-Type: application/json" \-d @- <<'EOF'{"type": "compose","params": { "schemaVersion": 1, "output": { "format": "mp4", "resolution": { "width": 1920, "height": 1080 }, "fps": 24, "crf": 23, "encoderPreset": "veryfast" }, "timeline": { "tracks": [ { "name": "video", "clips": [{ "asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4", "trim": { "from": 1, "to": 5 } } }] }, { "name": "logo", "clips": [{ "asset": { "type": "image", "src": "https://cdn.rendobar.com/assets/brand/logo-mark.png" }, "transform": { "position": { "x": "94%", "y": "12%" }, "size": { "width": 160, "height": 160 }, "fit": "contain" } }] }, { "name": "title", "clips": [{ "asset": { "type": "text", "text": "Launch week", "style": { "fontFamily": "Inter", "fontSize": 72, "color": "#FFFFFF", "background": "#00000080", "align": "center" } }, "transform": { "position": { "x": "50%", "y": "88%" } } }] } ] }}}EOFReturns immediately with a job id. Poll GET /jobs/{id} or register a webhook rather than blocking on the request.
What Rendobar does not do here
Rendobar has no visual template editor, and no white-label editor to embed in your product. A timeline is JSON your code writes, and an ffmpeg job runs the command you send. Fonts in a timeline load by Google Fonts family name, as the DejaVu fallback above showed.
Send the command when you already have one that works, because it was the cheaper render here and nothing about it changes on the way in. Move an edit to a timeline when product code has to fill it in many ways, and pay the 15-second minimum for the layout format. Both run on one key, so a product can use each where it fits without a second account or a second bill.
Frequently asked questions
Is FFmpeg free for commercial use?
FFmpeg itself is licensed under the LGPL 2.1 or later, which permits commercial use. Builds that include libx264 or other GPL components become GPL as a whole, so shipping such a binary inside a product brings GPL obligations. A command sent to an API ships no binary in your product. Check the FFmpeg legal page and the configure flags of any build you distribute.