ffmpeg__add_fade
Add fade-in and fade-out transitions to video clips, with optional synchronized audio fading. Specify durations and fade color for customized results.
Instructions
Add fade-in and/or fade-out transitions to a video clip. @remarks At least one of fade_in_duration or fade_out_duration must be greater than zero. Audio fade is applied simultaneously when include_audio is true. Returns JSON in stdout with output_path and applied parameters. @param input_path Source video path. @param output_path Destination video path with fade transitions. @param fade_in_duration Fade-in duration in seconds. Default 0 (no fade in). @param fade_out_duration Fade-out duration in seconds. Default 0 (no fade out). @param fade_color Fade transition color: black or white. Default black. @param include_audio Whether to apply afade filter synchronously with the video fade. Default true. @param __mcp_response_mode Optional response mode: content (default) or structuredContent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "ffmpeg__add_fade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fade_color | No | ||
| input_path | Yes | ||
| output_path | Yes | ||
| include_audio | No | ||
| fade_in_duration | No | ||
| fade_out_duration | No | ||
| __mcp_response_mode | No | content |