concat

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

concat(c("part1.mp4", "part2.mp4", "part3.mp4"), "full.mp4")