Skip to main content
POST
/
ffmpeg
/
run
Execute an FFmpeg task with inputs and outputs
curl --request POST \
  --url https://api.ffmpeg-api.com/v1/ffmpeg/run \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'command=<string>'
{
  "ok": true,
  "result": "<any>"
}

Headers

Authorization
string
required

Your secret API key. Format: Basic <key>

Body

multipart/form-data
command
string
required

JSON string describing the FFmpeg task. Example shape: { inputs: [{ file, options }], outputs: [{ file, options }] }.

{key}
any

Response

200 - application/json

Successful response with the execution result. You can then query your directory to discover produced files.

ok
boolean
required
result
any
I