ffmpeg-effect: add sendtohell 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 5a034f48f9cedcba6c52adbd56447e43b48a6282 DIR parent f5cacaa1336848678a6274b1aa6f298730e78cf7 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 3 Jun 2021 22:31:33 +0200 ffmpeg-effect: add sendtohell effect Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-message-common | 3 ++- M ffmpeg-effect | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -666,7 +666,8 @@ case "${text}" in "${botname}, please reverse #"*|\ "${botname}, please loop #"*|\ "${botname}, please bounce #"*|\ -"${botname}, please sexify #"*) +"${botname}, please sexify #"*|\ +"${botname}, please sendtohell #"*) hashtag="$(printf "%s\n" "${text}" | sed 's/.*#//' )" origext="$(grep -E "^#${hashtag} " "${hashtagfile}" | sed 's/.*\.//')" { DIR diff --git a/ffmpeg-effect b/ffmpeg-effect @@ -10,7 +10,7 @@ repeats=5 usage() { printf 'usage: %s [-n REPEATS] FILTER infile outfile\n' "${0##*/}" 1>&2 printf 'where FILTER is one of: wide, thin, speedup, ' 1>&2 - printf 'slowdown, reverse, loop, bounce, sexify.\n' 1>&2 + printf 'slowdown, reverse, loop, bounce, sexify, sendtohell.\n' 1>&2 printf 'For loop and bounce, option -n sets the number of repeats (default %d).\n' "$repeats" 1>&2 exit 1 } @@ -56,6 +56,14 @@ process_filter() { -i "${mediadir}/careless_whisper.mp3" \ -filter_complex "amix=inputs=2:duration=shortest:weights=3 2" \ "$3" </dev/null;; + sendtohell) + $ffmpeg_common -i "$2" \ + -i "${mediadir}/hell.mkv" \ + -filter_complex " + [0:v] scale=w=1920:h=1080, pad=w=1920:h=1080 [video0]; + [video0][1:v] blend=all_mode=average:shortest=1; + amix=inputs=2:duration=shortest:weights=3 2" \ + "$3" </dev/null;; *) usage;; esac }