bitflow/video-concat-safe-pro

When combining short AI videos encoded with different tools, codecs, and frame rates, this process standardizes them to ensure they are merged safely so that the final combined video remains intact.

Public
28 runs

Run time and cost

This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

Video Concat Safe Pro

The ultimate “fail-safe” tool for joining AI-generated video clips — no matter how messy the source files are.

Most AI video generators (Kling, Wan, Sora, Runway, etc.) output clips that look similar but differ in subtle, technical ways. Naively concatenating them often leads to playback glitches, audio pops, or outright failures on platforms like Instagram or YouTube.

Video Concat Safe Pro solves this with a robust two-pass pipeline: 1. Normalization: Every clip is “washed” to a single, unified spec (Resolution, FPS, Codec). 2. Lossless Stitching: The normalized clips are merged instantly using the FFmpeg concat demuxer.


🚀 Why Use “Safe Pro”?

  • Mixed Engine Support: Combine a Kling clip with a Runway clip and a Luma clip in one go.
  • No More Silent Errors: If one clip has audio and another doesn’t, we’ll auto-generate a silent track for the mute one to keep the timeline perfectly synced.
  • Ultra-Compatible H.264: Output is encoded in H.264 High@4.1 with yuv420p — the gold standard for web and social media.
  • Cost-Efficient: Runs on Replicate CPU instances. Pay pennies for what would cost dollars on a GPU.

🛠 Input Parameters

Parameter Type Default Description
videos file[] (required) List of video URLs or files to join.
fps integer 24 Force a constant frame rate for the entire movie.
width integer 1280 Output width. Supports up to 3840 (4K).
height integer 720 Output height. Supports up to 2160 (4K).
scale_mode enum pad pad: Black bars (no cropping). crop-fill: Fills screen (zooms & crops).
mute boolean false If true, strips all audio (great for music/VO post-production).

Output

Type Format Details
file MP4 H.264 High@4.1, AAC 48 kHz Stereo, faststart enabled

💡 Pro Tips for AI Creators

  • Match your generation FPS — If your AI model outputs at 24 fps, set fps=24 to avoid unnecessary frame duplication or interpolation artifacts.
  • Portrait / Square / Landscape — Just set width and height to match your target platform (e.g., 1080x1920 for TikTok/Reels, 1920x1080 for YouTube).
  • TikTok/Reels: Set width: 1080, height: 1920, scale_mode: crop-fill.
  • YouTube High-End: Set width: 3840, height: 2160, fps: 30.
  • Save Time: Use the mute=true flag if you plan to add a soundtrack later; it speeds up the processing by skipping audio resampling.

Powered by Bitflow AI Infrastructure

Model created