summaryrefslogtreecommitdiffstats
path: root/.local/bin/reactionvid
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-14 10:33:04 -0600
committermsglm <msglm@techchud.xyz>2023-01-14 10:33:04 -0600
commit0d05ef1e12314985988e567ac22a179d0f646899 (patch)
treede702ad5f7550a27a6fb982e617363ccaca4fecf /.local/bin/reactionvid
downloadmsglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.tar.gz
msglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.tar.bz2
msglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.zip
Inital Commit
Diffstat (limited to '.local/bin/reactionvid')
-rwxr-xr-x.local/bin/reactionvid10
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"