Lightweight 24/7 Twitch and YouTube Music Radio using FFMPEG.
Install the following software on your machine: git, screen, alsa, mpg123 and ffmpeg
sudo apt install git screen alsa mpg123 ffmpeg
git clone https://github.com/NoniDOTio/LiveStreamRadio.git
sudo modprobe snd-aloop pcm_substreams=1
.asoundrc
echo 'pcm.!default { type plug slave.pcm "hw:Loopback,0,0" }' >> ~/.asoundrc
config.sh
in an editor and add your RTMP urls to PLATFORMS, remove any lines you don't need
PLATFORMS=(
"rtmp://a.rtmp.youtube.com/live2/1234-5678-90ab-cdef-ghij"
)
MUSIC_DIR=
and BACKGROUND=
. Alternatively, you can move all your audio files to /media/music
../lsr.sh --start
./lsr.sh --stop