Add vcompare, a shortcut for having two videos play side by side in mpv.

This commit is contained in:
me
2026-09-15 18:11:21 -07:00
parent 9ce76da18d
commit da0d15348c
+22
View File
@@ -1189,6 +1189,28 @@ function pv3 {
echo -e "\n * Success! *"
}
# 20260915 - Stack 2 videos for comparing quality.
function vcompare {
vid1="$1"
vid2="$2"
if [[ -z $vid1 || -z $vid2 ]]; then
echo "ERROR: Missing vid1 ('$vid1') or vid2 ('$vid2'). "
return 1
fi
orientation="$3"
if [[ -z $orientation || ($orientation != "h" && $orientation != "v") ]]; then
echo -n "NOTICE: Received '$orientation' for orientation, using vertical instead. "
orientation="v"
echo "'$orientation'"
fi
mpv --lavfi-complex="[vid1][vid2]${orientation}stack[vo];[aid1][aid2]amix[ao]" \
"$vid1" \
--external-file="$vid2"
}
alias vcomp="vcompare "
### Web ###