Back to Autogpt

Video Concat

docs/integrations/block-integrations/video/concat.md

0.6.441.6 KB
Original Source

Video Concat

<!-- MANUAL: file_description -->

This block merges multiple video clips into a single continuous video, with optional transitions between clips.

<!-- END MANUAL -->

Video Concat

What it is

Merge multiple video clips into one continuous video

How it works

<!-- MANUAL: 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.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
videosList of video files to concatenate (in order)List[str (file)]Yes
transitionTransition between clips"none" | "crossfade" | "fade_black"No
transition_durationTransition duration in secondsintNo
output_formatOutput format"mp4" | "webm" | "mkv" | "mov"No

Outputs

OutputDescriptionType
errorError message if the operation failedstr
video_outConcatenated video file (path or data URI)str (file)
total_durationTotal duration in secondsfloat

Possible use case

<!-- MANUAL: 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
<!-- END MANUAL -->