From 0d05ef1e12314985988e567ac22a179d0f646899 Mon Sep 17 00:00:00 2001 From: msglm Date: Sat, 14 Jan 2023 10:33:04 -0600 Subject: Inital Commit --- .local/bin/reactionvid | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/bin/reactionvid (limited to '.local/bin/reactionvid') 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" -- cgit v1.2.3