| hstack | R Documentation |
Stack two videos side by side using FFmpeg's hstack filter.
hstack(left, right, output, width_left = NULL, width_right = NULL,
height = 1080, overwrite = TRUE, dry_run = FALSE)
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. |
Invisibly returns the output path. If dry_run, returns command string.
## Not run:
hstack("left.mp4", "right.mp4", "wide.mp4")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.