A simple CLI radio player that streams lofi stations using ffplay (from FFmpeg).
- Go 1.20+
- FFmpeg (provides
ffplay) - yt-dlp (for resolving YouTube stream URLs)
On Ubuntu/Debian:
sudo apt update && sudo apt install -y ffmpeg python3-pip
python3 -m pip install --upgrade yt-dlpVerify:
ffplay -version
yt-dlp --versiongo build ./cmd/radioThis produces a radio binary in the project root.
Interactive mode (default):
./radioStandard mode with flags:
./radio -station 2 -volume 70 -i=falseList stations:
./radio -list- [s] Stop playback
- [v] Change volume (0-100)
- [l] List all stations
- [viz] Toggle visualization note (no window; stub)
- [q] Quit
- [h] Help
- [1-5] Switch station
- Volume is applied via an ffmpeg volume filter using an approximate dB mapping.
- Visualization toggle is currently informational only and does not open a visual window in
-nodispmode.