mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-05 20:35:10 -05:00
- Remove deprecated output_return_type parameter - Add model_id parameter to narration block Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Video Concat
This block merges multiple video clips into a single continuous video, with optional transitions between clips.
Video Concat
What it is
Merge multiple video clips into one continuous video
How it works
The block uses MoviePy's concatenate_videoclips function to join multiple videos in sequence. It supports three transition modes: none (direct concatenation), crossfade (smooth blending where clips overlap), and fade_black (each clip fades out to black and the next fades in). At least 2 videos are required. The output is encoded with H.264 video codec and AAC audio codec.
Inputs
| Input | Description | Type | Required |
|---|---|---|---|
| videos | List of video files to concatenate (in order) | List[str (file)] | Yes |
| transition | Transition between clips | "none" | "crossfade" | "fade_black" | No |
| transition_duration | Transition duration in seconds | int | No |
| output_format | Output format | "mp4" | "webm" | "mkv" | "mov" | No |
Outputs
| Output | Description | Type |
|---|---|---|
| error | Error message if the operation failed | str |
| video_out | Concatenated video file (path or data URI) | str (file) |
| total_duration | Total duration in seconds | float |
Possible use case
- Combining multiple clips into a compilation video
- Assembling intro, main content, and outro segments
- Creating montages from multiple source videos
- Building video playlists or slideshows with transitions