Command-line tool
mpg321
brew/mpg321
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Command-line MP3 player
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install mpg321
Linux
brew install mpg321
Play an audio source exactly `n` times (0 means forever)
mpg321 -l n path/to/file1
Play a directory recursively
mpg321 -B path/to/directory
Enable Basic Keys (`<*>` or `</>` - Increase or decrease volume, `<n>` - Skip song, `<m>` - Mute/unmute.) while playing
mpg321 -K path/to/file1
Related command-line tools
- kew
Command-line music player linux macos windows player audio-player music-player music terminal command-line kew - adplay
Command-line player for OPL2 music - pianobar
Command-line player for https://pandora.com - dzr
Command-line Deezer.com player - xmp
Command-line player for module music formats (MOD, S3M, IT, etc) - astra
Command-Line Interface for DataStax Astra cross-platform electron typescript audio-player music-player music audio… - cmus
Music player with an ncurses based interface - mpc
Command-line music player client for mpd
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents