mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-09-28 08:58:38 -05:00
Adds a VideoConcat node that plays two or more VIDEO inputs back-to-back in input order, keeping audio, backed by a new lazy InputImpl.VideoConcatenated. - Autogrow inputs (video0/video1 required, grows up to 32) plus a resize mode: fit (scale later clips into the first clip's frame with black bars) or error (reject mismatched resolutions, rotation-aware). - VideoConcatenated encodes everything in a single streaming pass on save_to, so peak memory does not scale with video length. Sources keep their own frame timing (mixed frame rates/time bases stay VFR), trims stay lazy, rotation is baked in, and the audio track is gapless: silence for clips without audio and everything conformed to the best sample rate/channel layout present. - get_components() returns a constant-frame-rate tensor at the first clip's rate (other clips retimed by frame repeat/drop); as_trimmed() splits lazily across clip boundaries. - Fixes a pre-existing VideoFromFile.get_frame_count() bug for open-ended trim windows (start_time set, duration 0).