Shell scripts
Batch encodes finish without pinning the laptop that started them.
for f in raw/*.mov; do
cfmpeg -i "$f" -c:v libx264 -crf 23 \
"out/$(basename "$f" .mov).mp4"
doneSwap ffmpeg for cfmpeg. Same arguments, output on local disk. The encode runs remotely on up to 64 cores and 256 GiB of memory.
curl -fsSL https://cfmpeg.com/install | sh$5.00 of free credit for new accounts. No card required.
Measured. Speedup depends on codec, input, and resources.
ffmpeg -i input.mov -c:v libx265 -crf 28 out.mp4cfmpeg -i input.mov -c:v libx265 -crf 28 out.mp4Measured in November 2026 on a 10-minute 4K film (633 MB) with the codec settings shown. The CI runner is a standard GitHub-hosted Linux runner with 2 vCPUs, and the laptop is a 10-core Apple M1 Pro. Both ffmpeg times are the encode alone, with the file already on the machine. The cfmpeg time is the whole trip from that laptop: upload, encode, and download. cfmpeg was given no size flags and chose 32 cores and 128 GiB for the job. Not drawn: the same encode limited to a single vCPU, which took 5 h 0 min 51 s.
| Size | Flags | Whole trip | Cost |
|---|---|---|---|
| 16 cores · 64 GiB | --cf-cpu 16 --cf-memory 64g | 8 min 56 s | $0.72 |
| 32 cores · 128 GiB | None needed. cfmpeg picks this size. | 6 min 26 s | $1.01 |
| 64 cores · 128 GiB | --cf-cpu 64 --cf-memory 128g | 4 min 27 s | $1.07 |
One run each. Times vary between runs.
CI runners, web servers, and containers are sized for their everyday work, not for a 4K encode. cfmpeg moves the CPU and memory to a remote worker. The caller uploads, waits, and downloads.
Keep short jobs local. A thumbnail, a clip of a few seconds, or a -c copy remux finishes on your own machine before an upload would. cfmpeg pays off on long, CPU-bound encodes.
Batch encodes finish without pinning the laptop that started them.
for f in raw/*.mov; do
cfmpeg -i "$f" -c:v libx264 -crf 23 \
"out/$(basename "$f" .mov).mp4"
doneEncode on standard runners instead of paying for larger ones.
- run: curl -fsSL https://cfmpeg.com/install | sh
- run: cfmpeg -i master.mov release.mp4
env:
CFMPEG_API_KEY: ${{ secrets.CFMPEG_API_KEY }}Queue workers shell out to cfmpeg and keep their CPU for requests.
await execFile('cfmpeg', [
'-i', upload.path,
'-c:v', 'libx264', '-crf', '23',
'public/video.mp4',
]);Integrating without the CLI? The same HTTP API is available directly. Read the API docs
cfmpeg picks how each input gets to the worker. There is no bucket, queue, or worker fleet for you to set up.
| Job shape | Flags | Per minute | Per hour |
|---|---|---|---|
| 2 cores · 2 GiB | None. Small inputs run here. | $0.0074 | $0.44 |
| 2 cores · 4 GiB | --cf-cpu 2 --cf-memory 4g | $0.0084 | $0.51 |
| 8 cores · 8 GiB | --cf-cpu 8 --cf-memory 8g | $0.0294 | $1.76 |
| 16 cores · 32 GiB | --cf-cpu 16 --cf-memory 32g | $0.0674 | $4.04 |
| 64 cores · 256 GiB | --cf-cpu 64 --cf-memory 256g | $0.3376 | $20.26 |
Without flags, cfmpeg sizes the job for you. A video encode with an input of 64 MiB or more runs on 16 cores · 32 GiB, or on 32 cores · 128 GiB when it can be split into pieces that encode in parallel. The CLI prints the size and its price per minute before the job starts.
Billed per second from when a worker picks up the job until its output is stored, with a 10-second minimum. Time in the queue and the download to your machine are free, and so are storage and transfer. Jobs that fail or that you cancel aren’t charged. Prepaid balance, no subscription: a job can’t spend more than you have loaded.
$ curl -fsSL https://cfmpeg.com/install | sh