ffmpeg-mcp Studio

v0.2.0
io.github.yubraaj11/ffmpeg-mcp Checked 4 days ago Published 11 days ago

AI 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.

ParameterTypeDescription
input_video_path *stringPath to the input video file.
number_of_framesTotal number of frames to extract evenly across the video.
timestamp_offsetTime interval in seconds between frames.

extract_audio Extract Audio

Function to extract audio from the given input video.

ParameterTypeDescription
input_video_path *stringPath to the input video.

clip_video Clip Video

Generate a video clip from the given video file using ffmpeg-python.

ParameterTypeDescription
input_video_path *stringPath to the source video file.
durationnumberClip length in seconds. Defaults to 5.0.
start_timestampnumberStart time in seconds. Defaults to 0.0.

crop_video Crop Video

Crop a video using ffmpeg-python.

ParameterTypeDescription
input_video_path *stringPath to input video (required)
heightintegerOutput height (default: 480)
safe_cropbooleanIf True, allows exact cropping (ignores mod-2 restrictions). Default: False
widthintegerOutput width (default: 640)
x_offsetintegerTop-left X coordinate of crop (default: 0)
y_offsetintegerTop-left Y coordinate of crop (default: 0)

make_gif Make Gif

Make gif using video path provided by user.

ParameterTypeDescription
input_video_path *stringPath to the source video file.
durationnumberClip length in seconds. Defaults to 4.0.
start_timestampnumberStart time in seconds. Defaults to 0.0.

concat_clips_with_transition Concat Clips With Transition

Concatenate multiple video clips with transitions.

ParameterTypeDescription
input_video_clips *array A list of file paths (strings) to the video clips that will be concatenated.
transition_durationnumber Duration of the transition effect in seconds.
transition_typestringThe 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.

ParameterTypeDescription
input_video_clips *arrayshould give input video clips in the form of string
audio_bitrateTarget audio bitrate. Defaults to '128k'.
crfConstant Rate Factor for quality control (lower = better quality). Defaults to 23.
frame_rateTarget frame rate. Defaults to 30.
presetEncoding speed vs. compression efficiency preset. Defaults to 'fast'.
resolutionTarget resolution as (width, height). Defaults to (1280, 720).

overlay_image Overlay Image

Overlay an image on top of a video with timing control.

ParameterTypeDescription
input_video_path *stringPath to background video.
overlay_image_path *stringPath to image file.
durationHow long to show overlay (seconds). None = until end of video.
keep_audiobooleanWhether to keep background audio.
opacityTransparency level (0–1). None = no alpha applied.
output_filenamestringOutput video filename (saved inside VIDEO_OVERLAY_PATH).
positioningstringWhere to place overlay.
scale(width, height) to resize image before placing.
start_timenumberWhen 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.

ParameterTypeDescription
input_video_path *stringPath to background video.
overlay_video_path *stringPath to overlay video.
keep_audiobooleanWhether to keep background audio.
output_filenamestringName of the output video file (saved inside VIDEO_OVERLAY_PATH).
positioningstringWhere to place overlay.
scalearray(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).

ParameterTypeDescription
inputs *arrayEach 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
heightintegerHeight to scale each video (portrait).
widthintegerWidth to scale each video (portrait).
xintegerX position for overlay (default 0).
yintegerY 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.

ParameterTypeDescription
input_video_path *stringPath to the input video file.
resolutionstringTarget 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.

ParameterTypeDescription
input_video_path *stringPath 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.

ParameterTypeDescription
input_video_path *stringSource video.
focus_xnumberFor crop, which part to keep horizontally (0 = left edge, 0.5 = centre, 1 = right edge).
focus_ynumberFor crop, which part to keep vertically.
modestring"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_filenameOptional output file name.
target_formatstringreel/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).

ParameterTypeDescription
input_video_path *stringSource video.
text *stringThe text to show.
animationstringnone, fade, slide_up or slide_down.
colorOptional text colour override, e.g. "#FFE600".
durationHow long it stays; None = until the end.
output_filenameOptional output file name.
positionstringAnchor (top_/center_/bottom_ + left/center/right, or caption). Positions avoid the Reels UI areas.
sizeOptional font size as a fraction of video height (e.g. 0.06).
start_timenumberWhen the text appears (seconds).
stylestringtitle, subtitle, bold_pop, karaoke, classic, minimal or boxed.
xOptional exact centre x as a fraction of width (0-1); requires y.
yOptional 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.

ParameterTypeDescription
input_media_path *stringVideo or audio file.
languageISO language code such as "en"; None auto-detects.
model_sizestringtiny, 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).

ParameterTypeDescription
input_video_path *stringSource video with speech.
languageISO language code, None = auto-detect.
modestringphrase_highlight = short phrases with the spoken word highlighted; word = one word at a time; phrase = plain phrases.
model_sizestringfaster-whisper model used when auto-transcribing.
output_filenameOptional output file name.
positionstringWhere captions sit; "caption" is the lower-middle safe zone used by Reels/TikTok.
stylestringbold_pop (uppercase, yellow active word), karaoke (highlight pill), classic (boxed subtitles), minimal, boxed, subtitle or title.
transcript_pathOptional .json (from transcribe_audio, possibly hand-corrected) or .srt file.
words_per_lineintegerMax words per caption phrase.

change_speed Change Speed

Speed up, slow down, or speed-ramp a video. Audio keeps its pitch.

ParameterTypeDescription
input_video_path *stringSource video.
output_filenameOptional output file name.
speedConstant speed for the whole video (0.1-10, e.g. 0.5 = half-speed slow motion, 2 = double).
speed_rampInstead 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.

ParameterTypeDescription
input_video_path *stringSource video.
ken_burnsOptional slow continuous zoom reaching this factor at the end (e.g. 1.1).
output_filenameOptional output file name.
zoomsSegments 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.

ParameterTypeDescription
input_video_path *stringSource video.
intensitynumber0-1 blend between original (0) and graded (1).
lut_pathOptional path to a .cube 3D LUT.
output_filenameOptional output file name.
presetwarm, 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.

ParameterTypeDescription
input_video_path *stringSource video.
music_path *stringLocal audio file (mp3, wav, m4a, ...).
duck_voicebooleanAutomatically lower the music while someone is speaking.
fade_innumberMusic fade-in seconds.
fade_outnumberMusic fade-out seconds at the end of the video.
output_filenameOptional output file name.
replace_audiobooleanDrop the original audio and keep only the music.
start_offsetnumberStart the song from this many seconds in (e.g. skip to the drop).
volumenumberMusic 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.

ParameterTypeDescription
audio_path *stringAudio or video file.
max_durationSeconds to analyse (None = whole file).
start_offsetnumberAnalyse 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.

ParameterTypeDescription
input_video_path *stringSource video with speech.
min_silencenumberOnly cut pauses longer than this many seconds.
noise_dbnumberAnything quieter than this (dBFS) counts as silence; raise towards -25 for noisy rooms.
output_filenameOptional output file name.
paddingnumberSeconds 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.

ParameterTypeDescription
input_video_path *stringSource video.
crfintegerQuality (lower = better/larger; 18-23 is typical).
normalize_loudnessbooleanNormalise audio to -14 LUFS.
output_filenameOptional output file name.
platformstringinstagram_reel, instagram_story, instagram_feed (4:5), tiktok, youtube_shorts or youtube (16:9).
reframe_modestringHow 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.

ParameterTypeDescription
input_video_path *stringVideo to preview.
columnsintegerThumbnails per row.
number_of_framesintegerEvenly spaced frames to include (ignored when timestamps is given).
thumb_widthintegerWidth of each thumbnail in px.
timestampsExact 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.

ParameterTypeDescription
clips *arrayVideo and/or image paths, in order.
caption_stylestringbold_pop, karaoke, classic, minimal, boxed, ...
captionsbooleanAuto-caption speech.
colorOptional look: warm, cool, vintage, bw, vivid, cinematic, matte, moody.
dry_runbooleanReturn the generated composition and timeline without rendering.
formatstringreel (default), square, portrait, landscape, ...
music_pathOptional local music file.
output_filenameOptional output file name.
reframe_modestringcrop, blur_fill or pad.
target_durationOptional maximum length; clips are shortened evenly to fit.
titleOptional title shown for the first ~3 seconds.
transitionxfade transition name, or "none" for hard cuts.
transition_durationnumberSeconds 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.

ParameterTypeDescription
clips *arrayVideo and/or image paths to cycle through.
music_path *stringLocal music file.
colorOptional look preset.
cut_every_n_beatsinteger1 = cut on every beat (frantic), 2 = every other beat, 4 = once per bar.
dry_runbooleanReturn the generated composition and timeline without rendering.
formatstringOutput format (default reel 9:16).
music_start_offsetnumberStart the song this many seconds in (e.g. at the drop).
output_filenameOptional output file name.
target_durationnumberApproximate length in seconds (ends on a cut point).
titleOptional title text.
transitionOptional short transition between cuts (e.g. "fade"); default hard cuts.
zoom_on_downbeatsbooleanPulse-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.

ParameterTypeDescription
video_path *stringThe recording.
auto_punch_in_everySeconds between zoom changes when not jump-cutting; None disables zooms.
caption_modestringphrase_highlight, word or phrase.
caption_stylestringkaraoke (default), bold_pop, classic, minimal, boxed.
colorOptional look preset.
dry_runbooleanReturn the generated composition and timeline without rendering.
focus_xnumberHorizontal position of the speaker in the source (0-1) for the vertical crop.
formatstringOutput format (default reel 9:16).
music_pathOptional local music file for a background bed.
music_volumenumberMusic level under the voice.
output_filenameOptional output file name.
punch_in_zoomnumberZoom factor for punch-ins.
remove_silencebooleanJump-cut out pauses (punch-in alternates on every cut).
titleOptional hook/title for the first seconds.