You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
274 B
Bash

#!/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