merge_videos
Combine multiple videos into a single video by decomposing each into frames and audio, merging frames, combining audio tracks (concat or mix), and reassembling with configurable FPS.
Instructions
Merge multiple videos into a single video.
Decomposes each video into frames and audio, batches the frames together, combines the audio tracks, and reassembles into one video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Output frames per second. Default: 0.0 (use FPS from the first video). | |
| audio_mode | No | How to combine audio tracks. Default: "concat". "concat" — sequence audio tracks one after another. "merge" — overlay/mix all audio tracks together. "none" — discard all audio. | concat |
| video_files | Yes | List of video filenames in ComfyUI's input directory, in the order they should appear. Must have at least 2 files. Upload files first with upload_image if needed. | |
| output_prefix | No | Filename prefix for the saved video. Default: "ComfyUI_MCP_merged". | ComfyUI_MCP_merged |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||