Install
Install the CLI
Add cfmpeg to your local machine or CI runner.
cfmpeg accepts ffmpeg-style commands, uploads local files or remote URLs, runs the encode on remote CPU and memory, streams progress, and returns the output.
$ cfmpeg runRemote jobcfmpeg --cf-cpu 16 --cf-memory 32g -i input.mov \
-c:v libx264 -c:a aac output.mp4
Uploading input.mov [====================] 100%
Encoding [==================--] 91% speed=16 segment workers
Downloading output.mp4 [====================] 100%
ok complete.01 / Quick start
The shortest path from zero to a remote transcode is install, authenticate, and run the same ffmpeg-style command you already use.
Install
Add cfmpeg to your local machine or CI runner.
Authenticate
Store an API key locally, or provide one through CI.
Run
Use the ffmpeg-style command and let cfmpeg handle execution.
curl -fsSL https://cfmpeg.com/install | sh
cfmpeg auth login
cfmpeg -i input.mov -c:v libx265 -crf 28 output.mp402 / Installation
Official installs include the pieces needed for streaming small jobs, segmenting large local files, and submitting remote URL inputs.
curl -fsSL https://cfmpeg.com/install | shbrew install cfmpeg/tap/cfmpeg# macOS and Linux, arm64 and x86_64, with checksums
https://github.com/cfmpeg/cfmpeg-cli/releases/latestcargo install cfmpeg03 / Authentication
The CLI stores an API key in the standard cfmpeg config file for local use. In automation, provide the key through the environment.
cfmpeg auth login
cfmpeg auth status
cfmpeg auth logoutexport CFMPEG_API_KEY=cfm_xxxxxxxxxxxxapi_key = "cfm_xxxxxxxxxxxx"
local_fallback = true04 / Usage
Local files, large files, and remote URLs can use the same command shape. cfmpeg handles upload strategy, remote execution, progress, and output return.
cfmpeg -i input.mov -c:v libx265 -crf 28 output.mp4cfmpeg -i video.mp4 -vn -c:a libmp3lame audio.mp3cfmpeg -i input.mov -c:v libx264 -crf 23 web.mp4 \
-vn -c:a aac audio.m4acfmpeg -i https://example.com/raw.mov -c:v libx264 output.mp405 / API
The CLI and website share the same HTTP API. Direct integrations create a job, upload any required input, stream status, and fetch outputs from these endpoints.
Create the job, attach input, start execution, and poll or stream status.
Fetch final outputs or consume completed batches while large jobs are still finishing.
/v1/healthAPI health check
/v1/jobsCreate an encoding job
/v1/jobs/{id}/startSignal upload completion
/v1/jobs/{id}Poll job status
/v1/jobs/{id}/streamReceive SSE progress
/v1/jobs/{id}/ingest/segments/upload-targetsGet upload URLs for large local-file segments
/v1/jobs/{id}/ingest/completeTell cfmpeg the input upload is complete
/v1/jobs/{id}/outputFetch output download URLs
/v1/jobs/{id}/output-batchesFetch completed output batches while a large job is still finishing
/v1/usageRead current billing-period usage
06 / Pricing
Pick the CPU and memory shape for the encode. Completed jobs bill against your prepaid balance for the seconds they actually run.
Rate formula
$0.003144/core/min + $0.0005328/GiB/min
Balanced
2 CPU / 2 GiB
$0.0074/min
Minimum charge $0.0012
High CPU
8 CPU / 8 GiB
$0.029/min
Minimum charge $0.0049
Jobs are billed by CPU, memory, and the seconds the remote execution runs.
The minimum billable duration is 10 seconds.
Temporary job artifact retention is included in the metered rate.
$ curl -fsSL https://cfmpeg.com/install | sh