Introduction
Introduction Statistics Contact Development Disclaimer Help
add sexify meme filter - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 0e6f333c5140d51607ccf145375c3e5ed54e02a7
parent 2770e5aa24ce6138d950dcc94de296303a3ac929
Author: Anders Damsgaard <[email protected]>
Date: Thu, 3 Jun 2021 13:14:30 +0200
add sexify meme filter
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 3 ++-
M ffmpeg-effect | 8 +++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
---
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/.*\.//')"
{
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 (def…
exit 1
}
@@ -50,6 +51,11 @@ process_filter() {
$ffmpeg_common -i "$2" \
-filter_complex "[0]reverse[r];[0][r]concat,lo…
"$3" </dev/null;;
+ sexify)
+ $ffmpeg_common -i "$2" \
+ -i "${mediadir}/careless_whisper.mp3" \
+ -filter_complex "amix=inputs=2:duration=shorte…
+ "$3" </dev/null;;
*) usage;;
esac
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.