concat: Concatenate Video Segments

View source: R/concat.R

concatR Documentation

Concatenate Video Segments

Description

Join multiple video files sequentially using FFmpeg's concat demuxer. All inputs should have compatible codecs and dimensions.

Usage

concat(inputs, output, overwrite = TRUE, dry_run = FALSE)

Arguments

inputs

Character vector of paths to input video files.

output

Path for output video file.

overwrite

If TRUE (default), overwrite output file.

dry_run

If TRUE, return the FFmpeg command without executing.

Value

Invisibly returns the output path. If dry_run, returns command string.

Examples

## Not run: 
concat(c("part1.mp4", "part2.mp4", "part3.mp4"), "full.mp4")

## End(Not run)


compost documentation built on Aug. 4, 2026, 5:11 p.m.