URI: 
       add sexify meme filter - 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 0e6f333c5140d51607ccf145375c3e5ed54e02a7
   DIR parent 2770e5aa24ce6138d950dcc94de296303a3ac929
  HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu,  3 Jun 2021 13:14:30 +0200
       
       add sexify meme filter
       
       Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
       
       Diffstat:
         M annna-message-common                |       3 ++-
         M ffmpeg-effect                       |       8 +++++++-
       
       2 files changed, 9 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -665,7 +665,8 @@ case "${text}" in
        "${botname}, please slowdown #"*|\
        "${botname}, please reverse #"*|\
        "${botname}, please loop #"*|\
       -"${botname}, please bounce #"*)
       +"${botname}, please bounce #"*|\
       +"${botname}, please sexify #"*)
                hashtag="$(printf "%s\n" "${text}" | sed 's/.*#//' )"
                origext="$(grep -E "^#${hashtag} " "${hashtagfile}" | sed 's/.*\.//')"
                {
   DIR diff --git a/ffmpeg-effect b/ffmpeg-effect
       @@ -4,12 +4,13 @@
        # requirements: ffmpeg.
        
        ffmpeg_common="ffmpeg -n -loglevel error"
       +mediadir="/home/annna/bin/modules/filter-media"
        
        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.\n' 1>&2
       +        printf 'slowdown, reverse, loop, bounce, sexify.\n' 1>&2
                printf 'For loop and bounce, option -n sets the number of repeats (default %d).\n' "$repeats" 1>&2
                exit 1
        }
       @@ -50,6 +51,11 @@ process_filter() {
                                $ffmpeg_common -i "$2" \
                                        -filter_complex "[0]reverse[r];[0][r]concat,loop=${repeats}:250,setpts=N/25/TB" -an \
                                        "$3" </dev/null;;
       +                sexify)
       +                        $ffmpeg_common -i "$2" \
       +                                -i "${mediadir}/careless_whisper.mp3" \
       +                                -filter_complex "amix=inputs=2:duration=shortest:weights=3 1" \
       +                                "$3" </dev/null;;
                        *) usage;;
                esac
        }