diff --git a/docker/config.py b/docker/config.py index f723172..9b2a57f 100644 --- a/docker/config.py +++ b/docker/config.py @@ -1,6 +1,6 @@ -AUDIO_INPUT = "http://storage/ror" +AUDIO_INPUT = "http://storage" # decomment this if you want to test with local audio source -# AUDIO_INPUT = "/rec/ror" +# AUDIO_INPUT = "/rec" AUDIO_OUTPUT = "/src/output" DEBUG = True HOST = "0.0.0.0" diff --git a/docker/run.liq b/docker/run.liq index b5be01d..c4da977 100755 --- a/docker/run.liq +++ b/docker/run.liq @@ -19,8 +19,8 @@ output.file( id="rorrec", reopen_when={0m}, %mp3(bitrate=80, samplerate=44100, stereo=true,stereo_mode="joint_stereo"), - "/rec/ror/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3", + "/rec/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3", # %vorbis(quality=0.3, samplerate=44100, channels=2), - # "/rec/ror/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.ogg", + # "/rec/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.ogg", rorinput ); diff --git a/docker/run.sh b/docker/run.sh index 7a0175a..1f4d9bc 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -2,7 +2,7 @@ set -xueo pipefail -FILEPATH="/rec/ror/$(date +%Y-%m)/$(date +%d)/rec-$(date +%Y-%m-%d-%H)-00-00.mp3" +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}