diff options
Diffstat (limited to '.local/bin/reactionvid')
-rwxr-xr-x | .local/bin/reactionvid | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/reactionvid b/.local/bin/reactionvid new file mode 100755 index 0000000..1469895 --- /dev/null +++ b/.local/bin/reactionvid @@ -0,0 +1,10 @@ +#!/bin/sh + +#Description: Intakes three parameters. Parameter one is a background video that will have parameter two's video overlayed upon it in the top right. Parameter three will act as the output location for this process. + +#Axioms: + +#Dependencies: https://packages.debian.org/sid/ffmpeg + + +ffmpeg -i "$1" -stream_loop -1 -i "$2" -filter_complex "[1:v]scale=250:-1[v2];[0:v][v2]overlay=main_w-overlay_w:5:shortest=1;amerge=inputs=2" -c:v libx264 "$3" || ffmpeg -i "$1" -stream_loop -1 -i "$2" -filter_complex "[1:v]scale=250:-1[v2];[0:v][v2]overlay=main_w-overlay_w:5:shortest=1" -c:v libx264 "$3" |