add technodrugs effect - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 9e6d8bac80b4cd6fc263966d8a3dc364e2694ef6 DIR parent 641cb04c2fcb457bae448c107e9052bcffafc91f HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 12 Nov 2021 22:03:56 +0100 add technodrugs effect like the techo effect, but with drugs Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-message-common | 1 + M ffmpeg-effect | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -794,6 +794,7 @@ case "${text}" in "${botname}, please slowdown #"*|\ "${botname}, please speedup #"*|\ "${botname}, please techno #"*|\ +"${botname}, please technodrugs #"*|\ "${botname}, please thin #"*|\ "${botname}, please torture #"*|\ "${botname}, please imam #"*|\ DIR diff --git a/ffmpeg-effect b/ffmpeg-effect @@ -119,6 +119,11 @@ process_filter() { "$3" </dev/null;; techno) replace_audio "${mediadir}/techno.mp3" "$2" "$3";; + technodrugs) + $ffmpeg_common -i "${mediadir}/techno.mp3" -i "$2" \ + -filter:v "tmix=frames=9:weights='0.2 0.4 0.6 0.8 1 0.8 0.6 0.4 0.2'" \ + -map 1:v:0 -map 0:a:0 -shortest \ + "$3" </dev/null;; thin) $ffmpeg_common -i "$2" \ -vf "scale=iw/4:ih,setsar=1" \