v1
latestOpenAPI 3.1.02026-07-26132249.4 KBAPI
FFmpeg Commands
Run Chained FFmpeg Commands which share input and output files
Submit multiple FFmpeg commands where following commands can depend on output of previous commands. Running chained FFmpeg commands is faster than running each command separately because we re-use system and network resources between the multiple ffmpeg commands. Processing quota is shared between the commands, and is more efficient than running each command separately.
post/v1/run-chained-ffmpeg-commands
Request body
Example request
{
"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,
"metadata": {
"key": "value"
},
"output_files": {
"out_1": "output_concatenated.mp4",
"out_2": "thumbnail.jpg"
},
"vcpu_count": 8
}Response
Successfully submitted chained FFmpeg commands
Example response
{
"command_id": "123e4567-e89b-12d3-a456-426614174000"
}