techrec/docker/run.sh

12 lines
268 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -xueo pipefail
2021-09-20 22:51:48 +02:00
FILEPATH="/rec/$(date +%Y-%m)/$(date +%d)/rec-$(date +%Y-%m-%d-%H)-00-00.mp3"
mkdir -p $(dirname ${FILEPATH})
if ! [[ -f ${FILEPATH} ]]; then
ffmpeg -f lavfi -i anullsrc=r=11025:cl=mono -t 3600 -acodec mp3 ${FILEPATH}
fi
/run.liq