Skip to content

hhaidrr/drift-radio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Lofi Radio (Go + ffplay)

A simple CLI radio player that streams lofi stations using ffplay (from FFmpeg).

Dependencies

  • 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-dlp

Verify:

ffplay -version
yt-dlp --version

Build

go build ./cmd/radio

This produces a radio binary in the project root.

Run

Interactive mode (default):

./radio

Standard mode with flags:

./radio -station 2 -volume 70 -i=false

List stations:

./radio -list

Controls

  • [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

Notes

  • 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 -nodisp mode.

About

Stream your favorite tunes right from your lovely terminal.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages