Horizontally Stack Two Videos
Description
Stack two videos side by side using FFmpeg’s hstack filter.
Usage
hstack(left, right, output, width_left = NULL, width_right = NULL,
height = 1080, overwrite = TRUE, dry_run = FALSE)
Arguments
left: Path to left video.right: Path to right video.output: Path for output video file.width_left: Width in pixels for left video (default: auto from height).width_right: Width in pixels for right video (default: auto from height).height: Output height in pixels (default 1080).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
hstack("left.mp4", "right.mp4", "wide.mp4")