| crossfade_concat | R Documentation |
Joins videos in order, dissolving each transition over fade
seconds (the duplicated conditioning overlap, so the blend is between
near-identical frames and is invisible). When audio is given it
becomes the sole audio track – the right move for chained chunks, whose
per-chunk audio has a silent conditioning head; the continuous narration has
no such gaps. Without audio, the first clip's audio is mapped through.
crossfade_concat(videos, output, fade = 0.375, audio = NULL,
transition = "dissolve", cuts = NULL, windows = NULL,
overwrite = TRUE, dry_run = FALSE)
videos |
Character vector of video paths, in order. Must share resolution / fps / pixel format (xfade requires it). |
output |
Output video path. |
fade |
Crossfade duration in seconds: a scalar applied to every join,
or a vector with one duration per join (length |
audio |
Optional path to a continuous audio track to overlay as the sole audio (e.g. the track's full narration mp3). |
transition |
xfade transition name (default |
cuts |
Optional logical vector, one per join (length |
windows |
Optional list, one element per video: |
overwrite |
Overwrite |
dry_run |
If TRUE, return the ffmpeg command string without running. |
Each join consumes its fade seconds of overlap, so the result runs
sum(durations) - sum(fades) long – slightly shorter than a hard
concat. One ffmpeg pass via xfade.
Invisibly, output (or the command string when dry_run).
## Not run:
crossfade_concat(c("chunk01.mp4", "chunk02_chained.mp4", "chunk03_chained.mp4"),
"video.mp4", fade = 0.375, audio = "audio.mp3")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.