The efforts I have to make for a private “Internet radio”
# The jukebox
for f in (ls | grep " " | grep -iv "compress" | shuf); sox $f -C 9 --comment "" -t ogg - pad 0 5; end | ffmpeg -readrate 1 -f ogg -i - -b:a 320k -f mpegts "udp://127.0.0.1:7060"
# Meanwhile, in another SSH connection, the sound system
# (needed because SSH doesn't support UDP tunneling)
while true; ffmpeg -v -8 -f mpegts -i "udp://127.0.0.1:7060" -f matroska -bufsize 3000k -c:a libopus "tcp://127.0.0.1:7070?listen"; end
no comments