diff options
author | ダカマ <dakama@kakeranoumi.xyz> | 2025-06-02 13:08:46 +0200 |
---|---|---|
committer | ダカマ <dakama@kakeranoumi.xyz> | 2025-06-02 13:08:46 +0200 |
commit | 14a892e627a375334a02381351f139d94ad7ecf3 (patch) | |
tree | e7c1ee5040f3076f57401b3b9e9eb567e2ecfb1a /dlanor_critic.sh |
Diffstat (limited to 'dlanor_critic.sh')
-rwxr-xr-x | dlanor_critic.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dlanor_critic.sh b/dlanor_critic.sh new file mode 100755 index 0000000..f0835cb --- /dev/null +++ b/dlanor_critic.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +BASE=$1 +BASENAME=$( basename "$BASE" ) +CRITIC="$HOME/Mozda/Jwebmsounds/dlanor_critic.mkv" +DIMENSIONS=$( ffprobe -i "$CRITIC" 2>&1 | grep -o "[0-9]\+x[0-9]\+" ) + +convert "$BASE" -resize "$DIMENSIONS"\! "/tmp/resized_$BASENAME" +ffmpeg -i "/tmp/resized_$BASENAME" -i "$CRITIC" -filter_complex '[1:v]colorkey=0x00fe00:0.3:0.2[ckout];[0:v][ckout]overlay[out]' -map '[out]' -map 1:a -c:a copy "$HOME/Desktop/critic.mp4" + +rm -f "/tmp/resized_$BASENAME"
\ No newline at end of file |