Spaces:
Build error
Build error
File size: 413 Bytes
98775da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash
echo "starting the audio collection stream.."
while true; do
num_files=$(ls $WEBTV_AUDIO_STORAGE_PATH*.mp3 2> /dev/null | wc -l)
if [ $num_files -eq 0 ]
then
sleep 1
fi
for f in $WEBTV_AUDIO_STORAGE_PATH*.mp3
do
echo "playing $f"
ffmpeg -fflags +discardcorrupt -re -i "$f" -loglevel panic -vn -acodec copy -f mp3 -y audio.pipe 2>/dev/null
done
done |