11 lines
272 B
Bash
Executable file
11 lines
272 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xueo pipefail
|
|
|
|
FILEPATH="/rec/ror/$(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
|