Skip to content

Commit

Permalink
Added Bitrate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Emersont1 committed Dec 11, 2021
1 parent 3347bde commit ea199fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM alpine:latest
# IceCast Server - Override this in the docker-compose file
ENV ICECAST="https://live.urn1350.net/listen"

# URN broadcasts at 320k
ENV BITRATE="320k"

RUN apk add ffmpeg

# Save the CoW stuff
Expand Down
2 changes: 1 addition & 1 deletion record.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

time=$(date +%Y-%m-%dT%H%Z -d @$(( $(date +%s) + 300 )) )

ffmpeg -i $ICECAST -t $(( 60 * 70 )) /data/$time.mp3
ffmpeg -i $ICECAST -t $(( 60 * 70 )) -ab $BITRATE /data/$time.mp3

0 comments on commit ea199fb

Please sign in to comment.