POST
/
v1
/
run-chained-ffmpeg-commands
Run Chained FFmpeg Commands which share input and output files
curl --request POST \
  --url https://api.rendi.dev/v1/run-chained-ffmpeg-commands \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "ffmpeg_commands": [
    "-i {{in_1}} -i {{in_2}} -filter_complex [0:v][1:v]hstack=inputs=2[v] -map [v] {{out_1}}",
    "-i {{out_1}} -vframes 1 {{out_2}}"
  ],
  "input_files": {
    "in_1": "https://storage.rendi.dev/sample/big_buck_bunny_720p_5sec_intro.mp4",
    "in_2": "https://storage.rendi.dev/sample/big_buck_bunny_720p_5sec_outro.mp4"
  },
  "max_command_run_seconds": 300,
  "output_files": {
    "out_1": "output_concatenated.mp4",
    "out_2": "thumbnail.jpg"
  },
  "vcpu_count": 8
}'
{
  "command_id": "123e4567-e89b-12d3-a456-426614174000"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Request model for submitting chained FFmpeg commands.

This model allows submitting multiple FFmpeg commands that run sequentially. Input files can be shared between commands. Output files from earlier commands can be used as inputs to later commands.

Response

200
application/json

Successfully submitted chained FFmpeg commands

Response model for command submission.

Contains the unique identifier assigned to the submitted command that can be used to poll for status and retrieve results.