ffmpeg-mcp Studio
v0.2.0AI video editor on FFmpeg: auto captions, Reels/Shorts/TikTok, beat-synced cuts, music, transitions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
extract_frames Extract Frames
Extract frames from a video file and save each frame with a unique UUID filename.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to the input video file. |
number_of_frames | Total number of frames to extract evenly across the video. | |
timestamp_offset | Time interval in seconds between frames. |
extract_audio Extract Audio
Function to extract audio from the given input video.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to the input video. |
clip_video Clip Video
Generate a video clip from the given video file using ffmpeg-python.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to the source video file. |
duration | number | Clip length in seconds. Defaults to 5.0. |
start_timestamp | number | Start time in seconds. Defaults to 0.0. |
crop_video Crop Video
Crop a video using ffmpeg-python.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to input video (required) |
height | integer | Output height (default: 480) |
safe_crop | boolean | If True, allows exact cropping (ignores mod-2 restrictions). Default: False |
width | integer | Output width (default: 640) |
x_offset | integer | Top-left X coordinate of crop (default: 0) |
y_offset | integer | Top-left Y coordinate of crop (default: 0) |
make_gif Make Gif
Make gif using video path provided by user.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to the source video file. |
duration | number | Clip length in seconds. Defaults to 4.0. |
start_timestamp | number | Start time in seconds. Defaults to 0.0. |
concat_clips_with_transition Concat Clips With Transition
Concatenate multiple video clips with transitions.
| Parameter | Type | Description |
|---|---|---|
input_video_clips * | array | A list of file paths (strings) to the video clips that will be concatenated. |
transition_duration | number | Duration of the transition effect in seconds. |
transition_type | string | The type of transition to apply between clips. Supported transitions include: - fade (default), fadeblack, fadewhite, distance - wipeleft, wiperight, wipeup, wipedown - slideleft, slideright, slideup… |
get_normalized_clips Get Normalized Clips
Normalize multiple video clips in parallel by adjusting resolution, frame rate, codec, and compression parameters.
| Parameter | Type | Description |
|---|---|---|
input_video_clips * | array | should give input video clips in the form of string |
audio_bitrate | Target audio bitrate. Defaults to '128k'. | |
crf | Constant Rate Factor for quality control (lower = better quality). Defaults to 23. | |
frame_rate | Target frame rate. Defaults to 30. | |
preset | Encoding speed vs. compression efficiency preset. Defaults to 'fast'. | |
resolution | Target resolution as (width, height). Defaults to (1280, 720). |
overlay_image Overlay Image
Overlay an image on top of a video with timing control.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to background video. |
overlay_image_path * | string | Path to image file. |
duration | How long to show overlay (seconds). None = until end of video. | |
keep_audio | boolean | Whether to keep background audio. |
opacity | Transparency level (0–1). None = no alpha applied. | |
output_filename | string | Output video filename (saved inside VIDEO_OVERLAY_PATH). |
positioning | string | Where to place overlay. |
scale | (width, height) to resize image before placing. | |
start_time | number | When to start showing overlay (seconds). |
overlays_video Overlays Video
Overlay a video on top of another with simple positioning. Loops the overlay video until the background video ends, trimming any extra frames.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to background video. |
overlay_video_path * | string | Path to overlay video. |
keep_audio | boolean | Whether to keep background audio. |
output_filename | string | Name of the output video file (saved inside VIDEO_OVERLAY_PATH). |
positioning | string | Where to place overlay. |
scale | array | (width, height) to resize overlay video before placing. |
trim_and_concat_operation Trim And Concat Operation
Trim and concatenate multiple videos (portrait orientation, normalize format).
| Parameter | Type | Description |
|---|---|---|
inputs * | array | Each dict must have: - 'path' (str): path to the video file - 'start_time' (str, optional): start time in seconds - 'end_time' (str, optional): end time in seconds |
height | integer | Height to scale each video (portrait). |
width | integer | Width to scale each video (portrait). |
x | integer | X position for overlay (default 0). |
y | integer | Y position for overlay (default 0). |
scale_video Scale Video
Upscales a video to 1080p, 2K, or 4K using FFmpeg while preserving aspect ratio and color accuracy.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to the input video file. |
resolution | string | Target resolution for upscaling. Acceptable values are '1080p', '2k', or '4k'. Defaults to '1080p'. |
get_video_metadata Get Video Metadata
Function to extract metadata of the given input video.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Path to the input video. |
reframe_video Reframe Video
Convert a video to another aspect ratio, e.g. a landscape clip into a vertical 9:16 Reel.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
focus_x | number | For crop, which part to keep horizontally (0 = left edge, 0.5 = centre, 1 = right edge). |
focus_y | number | For crop, which part to keep vertically. |
mode | string | "crop" fills the frame and crops the overflow; "blur_fill" keeps the whole picture on a blurred copy of itself (Instagram style); "pad" keeps the whole picture with black bars. |
output_filename | Optional output file name. | |
target_format | string | reel/story/shorts/tiktok (1080x1920), square (1080x1080), portrait (1080x1350, 4:5), landscape (1920x1080). |
add_text_overlay Add Text Overlay
Add a styled title or text label to a video (rendered with a bundled font, wraps automatically).
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
text * | string | The text to show. |
animation | string | none, fade, slide_up or slide_down. |
color | Optional text colour override, e.g. "#FFE600". | |
duration | How long it stays; None = until the end. | |
output_filename | Optional output file name. | |
position | string | Anchor (top_/center_/bottom_ + left/center/right, or caption). Positions avoid the Reels UI areas. |
size | Optional font size as a fraction of video height (e.g. 0.06). | |
start_time | number | When the text appears (seconds). |
style | string | title, subtitle, bold_pop, karaoke, classic, minimal or boxed. |
x | Optional exact centre x as a fraction of width (0-1); requires y. | |
y | Optional exact centre y as a fraction of height (0-1); requires x. |
transcribe_audio Transcribe Audio
Transcribe speech from a video or audio file with word-level timestamps (local faster-whisper, offline after the first model download). The JSON transcript can be corrected by hand and passed to add_captions / render_composition as transcript_path.
| Parameter | Type | Description |
|---|---|---|
input_media_path * | string | Video or audio file. |
language | ISO language code such as "en"; None auto-detects. | |
model_size | string | tiny, base (default), small, medium or large-v3. Larger is more accurate but slower. |
add_captions Add Captions
Burn animated, word-synced captions into a video (auto-transcribed, or from a transcript you provide).
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video with speech. |
language | ISO language code, None = auto-detect. | |
mode | string | phrase_highlight = short phrases with the spoken word highlighted; word = one word at a time; phrase = plain phrases. |
model_size | string | faster-whisper model used when auto-transcribing. |
output_filename | Optional output file name. | |
position | string | Where captions sit; "caption" is the lower-middle safe zone used by Reels/TikTok. |
style | string | bold_pop (uppercase, yellow active word), karaoke (highlight pill), classic (boxed subtitles), minimal, boxed, subtitle or title. |
transcript_path | Optional .json (from transcribe_audio, possibly hand-corrected) or .srt file. | |
words_per_line | integer | Max words per caption phrase. |
change_speed Change Speed
Speed up, slow down, or speed-ramp a video. Audio keeps its pitch.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
output_filename | Optional output file name. | |
speed | Constant speed for the whole video (0.1-10, e.g. 0.5 = half-speed slow motion, 2 = double). | |
speed_ramp | Instead of `speed`, a list of segments in source seconds, e.g. [{"start": 2, "end": 4, "speed": 0.4}] for a slow-motion moment, or [{"start": 0, "end": 3, "speed_start": 1, "speed_end": 3}] for a grad… |
apply_zoom Apply Zoom
Add punch-in zooms (and/or a slow ken-burns push) to a video - the classic talking-head emphasis cut.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
ken_burns | Optional slow continuous zoom reaching this factor at the end (e.g. 1.1). | |
output_filename | Optional output file name. | |
zooms | Segments like [{"start": 2.0, "end": 4.5, "zoom": 1.25, "center_x": 0.5, "center_y": 0.4, "ease": "snap"}]. ease "snap" jumps in instantly; "smooth" eases over `ramp` seconds (default 0.3). |
apply_color_filter Apply Color Filter
Colour-grade a video with a look preset and/or a .cube LUT.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
intensity | number | 0-1 blend between original (0) and graded (1). |
lut_path | Optional path to a .cube 3D LUT. | |
output_filename | Optional output file name. | |
preset | warm, cool, vintage, bw, vivid, cinematic (teal & orange), matte or moody. |
add_background_music Add Background Music
Add a local music track under a video. The track loops/trims to the video length; the video is not re-encoded.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
music_path * | string | Local audio file (mp3, wav, m4a, ...). |
duck_voice | boolean | Automatically lower the music while someone is speaking. |
fade_in | number | Music fade-in seconds. |
fade_out | number | Music fade-out seconds at the end of the video. |
output_filename | Optional output file name. | |
replace_audio | boolean | Drop the original audio and keep only the music. |
start_offset | number | Start the song from this many seconds in (e.g. skip to the drop). |
volume | number | Music volume (0-2; 0.25 suits a bed under speech, 1.0 for music-only edits). |
detect_beats Detect Beats
Detect the tempo and beat times of a song (or any audio/video file) for beat-synced editing.
| Parameter | Type | Description |
|---|---|---|
audio_path * | string | Audio or video file. |
max_duration | Seconds to analyse (None = whole file). | |
start_offset | number | Analyse from this many seconds into the file; returned times are relative to it. |
remove_silences Remove Silences
Jump-cut a talking video: cut out pauses and dead air automatically.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video with speech. |
min_silence | number | Only cut pauses longer than this many seconds. |
noise_db | number | Anything quieter than this (dBFS) counts as silence; raise towards -25 for noisy rooms. |
output_filename | Optional output file name. | |
padding | number | Seconds of breathing room kept around speech. |
export_for_platform Export For Platform
Produce an upload-ready file for a platform: right resolution/aspect, 30 fps, H.264 High + AAC 48 kHz, fast-start MP4 and -14 LUFS loudness. Warns when the video is longer than the platform allows.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Source video. |
crf | integer | Quality (lower = better/larger; 18-23 is typical). |
normalize_loudness | boolean | Normalise audio to -14 LUFS. |
output_filename | Optional output file name. | |
platform | string | instagram_reel, instagram_story, instagram_feed (4:5), tiktok, youtube_shorts or youtube (16:9). |
reframe_mode | string | How to fit a different aspect ratio: blur_fill, crop or pad. |
render_preview Render Preview
Render a contact sheet (one PNG with timestamped thumbnails) so the edit can be checked visually.
| Parameter | Type | Description |
|---|---|---|
input_video_path * | string | Video to preview. |
columns | integer | Thumbnails per row. |
number_of_frames | integer | Evenly spaced frames to include (ignored when timestamps is given). |
thumb_width | integer | Width of each thumbnail in px. |
timestamps | Exact times (seconds) to sample instead. |
get_editing_capabilities Get Editing Capabilities
List the options the editing tools accept: output formats, platforms, caption/text styles, colour presets, transitions, positions and animations. Call this before building a composition.
render_composition Render Composition
Render a complete edited video from a declarative timeline - the tool that combines every feature. Pipeline: each clip is trimmed -> speed/speed-ramped -> reframed to the target format -> punch-in zoomed -> colour graded; clips are joined with transitions (or hard cuts); then word-synced captions, text titles, image/logo overlays and a ducked music bed are added, and the result is exported for the chosen platform (H.264/AAC, fast-start, -14 LUFS). Times: ClipSpec start/end and speed_ramp use the clip's source seconds; zoom uses seconds within the clip's output; text/image overlays use second…
make_reel_from_clips Make Reel From Clips
One call: turn a list of videos/photos into a finished vertical Reel - reframed to 9:16, joined with transitions, auto-captioned (when there is speech), titled, colour graded and scored with ducked music.
| Parameter | Type | Description |
|---|---|---|
clips * | array | Video and/or image paths, in order. |
caption_style | string | bold_pop, karaoke, classic, minimal, boxed, ... |
captions | boolean | Auto-caption speech. |
color | Optional look: warm, cool, vintage, bw, vivid, cinematic, matte, moody. | |
dry_run | boolean | Return the generated composition and timeline without rendering. |
format | string | reel (default), square, portrait, landscape, ... |
music_path | Optional local music file. | |
output_filename | Optional output file name. | |
reframe_mode | string | crop, blur_fill or pad. |
target_duration | Optional maximum length; clips are shortened evenly to fit. | |
title | Optional title shown for the first ~3 seconds. | |
transition | xfade transition name, or "none" for hard cuts. | |
transition_duration | number | Seconds per transition. |
beat_sync_montage Beat Sync Montage
One call: a beat-synced montage - detects the song's beats and cuts between your clips exactly on them, with punch-in zooms on the downbeats. Clips cycle in order; the music is the only audio.
| Parameter | Type | Description |
|---|---|---|
clips * | array | Video and/or image paths to cycle through. |
music_path * | string | Local music file. |
color | Optional look preset. | |
cut_every_n_beats | integer | 1 = cut on every beat (frantic), 2 = every other beat, 4 = once per bar. |
dry_run | boolean | Return the generated composition and timeline without rendering. |
format | string | Output format (default reel 9:16). |
music_start_offset | number | Start the song this many seconds in (e.g. at the drop). |
output_filename | Optional output file name. | |
target_duration | number | Approximate length in seconds (ends on a cut point). |
title | Optional title text. | |
transition | Optional short transition between cuts (e.g. "fade"); default hard cuts. | |
zoom_on_downbeats | boolean | Pulse-zoom on the first beat of each bar. |
talking_head_reel Talking Head Reel
One call: turn a talking-to-camera recording into a creator-style Reel - vertical crop, animated word-by-word captions, alternating punch-in zooms, optional jump cuts that remove pauses, and a quiet ducked music bed.
| Parameter | Type | Description |
|---|---|---|
video_path * | string | The recording. |
auto_punch_in_every | Seconds between zoom changes when not jump-cutting; None disables zooms. | |
caption_mode | string | phrase_highlight, word or phrase. |
caption_style | string | karaoke (default), bold_pop, classic, minimal, boxed. |
color | Optional look preset. | |
dry_run | boolean | Return the generated composition and timeline without rendering. |
focus_x | number | Horizontal position of the speaker in the source (0-1) for the vertical crop. |
format | string | Output format (default reel 9:16). |
music_path | Optional local music file for a background bed. | |
music_volume | number | Music level under the voice. |
output_filename | Optional output file name. | |
punch_in_zoom | number | Zoom factor for punch-ins. |
remove_silence | boolean | Jump-cut out pauses (punch-in alternates on every cut). |
title | Optional hook/title for the first seconds. |