Edit a video (or put text/logo on an image)
video_editEdit local video and image files with ffmpeg: trim, reframe, change speed, fade, mute, replace audio, extract frames, make GIFs, add text/logos/subtitles, or concatenate clips.
Instructions
One operation per call, all local with ffmpeg: trim (start, end), reframe (aspect 9:16/1:1/16:9/4:5/4:3, fit cover|contain), speed (factor), fade (fade_in, fade_out seconds), mute, replace_audio (audio_path), extract_frame (at seconds, e.g. a poster image), gif (start, duration, width, fps), text (text, position top|center|bottom, size, color, box) on a video or image, logo (logo_path, position, width_percent) on a video or image, subtitles (srt_path, burned in), concat (others: more clips joined after this one). Chain calls for several edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| box | No | ||
| end | No | ||
| fit | No | cover | |
| fps | No | ||
| size | No | ||
| text | No | ||
| color | No | white | |
| start | No | ||
| width | No | ||
| aspect | No | ||
| factor | No | ||
| others | No | ||
| fade_in | No | ||
| duration | No | ||
| fade_out | No | ||
| position | No | ||
| srt_path | No | ||
| logo_path | No | ||
| operation | Yes | ||
| overwrite | No | ||
| audio_path | No | ||
| input_path | Yes | ||
| output_path | No | ||
| width_percent | No |