POST
/
v1
/
run-multiple-ffmpeg-commands
curl --request POST \
  --url https://api.rendi.dev/v1/run-multiple-ffmpeg-commands \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "ffmpeg_commands": [
    "-i {{in_1}} -vf scale=1280:720 {{out_1}}",
    "-i {{in_1}} -vf scale=1920:1080 {{out_2}}"
  ],
  "input_files": {
    "in_1": "https://storage.rendi.dev/sample/input-video.avi"
  },
  "output_files": {
    "out_1": "output_720.avi",
    "out_2": "output_1080.avi"
  }
}'
{
  "command_ids": [
    "123e4567-e89b-12d3-a456-426614174000",
    "987fcdeb-a89b-43d3-b456-789012345678"
  ]
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Request model for submitting multiple FFmpeg commands.

This model allows submitting multiple FFmpeg commands that run in parallel, where each command can use the same input files to generate different output files. For example, this can be used to generate multiple versions of a video with different resolutions or formats in a single request.

Response

200
application/json

Successful Response

Response model containing a list of command IDs returned from a batch command submission.

This model is used to return the unique identifiers for multiple FFmpeg commands that were submitted together. The command IDs are returned in the same order as the original command submission order.