Add a transition
add_transitionJoin two video clips with a cross-fade, wipe, or slide transition, overlapping them by a set duration. Automatically matches resolution and frame rate, and crossfades audio.
Instructions
Join two clips with a cross-fade or wipe-style transition.
The clips overlap by 'duration' seconds, so the result is shorter than the two clips added together by exactly that much. The second clip is conformed to the first one's resolution and frame rate first, since xfade requires both sides to match.
Available transitions include fade, fadeblack, dissolve, the wipe family (wipeleft/right/up/down), the slide family, and circleopen/circleclose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encode | No | ||
| duration | No | How long the two clips overlap, in seconds. | |
| first_path | Yes | Clip that plays first. | |
| transition | No | One of: fade, fadeblack, fadewhite, wipeleft, wiperight, wipeup, wipedown, slideleft, slideright, slideup, slidedown, circlecrop, rectcrop, circleopen, circleclose, dissolve, pixelize, radial, smoothleft, smoothright, smoothup, smoothdown. | fade |
| output_path | No | ||
| second_path | Yes | Clip that plays second. | |
| crossfade_audio | No | Cross-fade the audio across the same overlap. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |