v1
latestOpenAPI 3.1.02026-07-26132249.4 KBAPI
FFmpeg Commands
Run FFmpeg Command
Submit an FFmpeg command for processing with input and output file specifications.
post/v1/run-ffmpeg-command
Request body
Example request
{
"ffmpeg_command": "-i {{in_1}} -vf \"select='lte(t,60)*gt(trunc(t/10),trunc(prev_t/10))',setpts='PTS*0.025',scale=trunc(oh*a/2)*2:320:force_original_aspect_ratio=decrease,pad=trunc(oh*a/2)*2:320:-1:-1\" -an -vsync vfr {{out_1}}",
"input_files": {
"in_1": "https://storage.rendi.dev/sample/sample.avi"
},
"max_command_run_seconds": 300,
"metadata": {
"key": "value"
},
"output_files": {
"out_1": "output1.gif"
},
"vcpu_count": 8
}Response
Successfully submitted FFmpeg command
Example response
{
"command_id": "123e4567-e89b-12d3-a456-426614174000"
}