lauscher/silence.sh

10 lines
274 B
Bash
Raw Normal View History

2021-11-20 00:03:45 +01:00
#!/bin/bash
cd /srv/recording
find -name "*.flac" -mmin +1 | while read f; do
if ! test -e silence/"$f".txt; then
echo "$f"
nice -n19 ffmpeg -hide_banner -i $f -af silencedetect=duration=30 -f null - 2>&1 </dev/null | sed 's/\r/\n/g' >silence/"$f".txt
fi
done