fofr/smart-ffmpeg

Quickly edit, trim, re-encode, concatenate videos using ffmpeg and gpt-5 generated commands

Public
109 runs

Run fofr/smart-ffmpeg with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
files
array
List of input files (images or videos)
prompt
string
High-level editing request, e.g., 'combine with crossfade and add watermark'
max_attempts
integer
3

Min: 1

Max: 5

Max ffmpeg retries with model assistance

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}
Example API response
View prediction
['https://replicate.delivery/xezq/USzzWfr5krxZWKCMvZ9et1OAbp5XZExilbinZZeZughYuZYqA/concatenated.mp4']