2020-07-01 13:10:14 +03:00
|
|
|
# mpg321
|
|
|
|
|
|
|
|
> High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
|
|
|
|
> Mpg321 was written (sometime in 1999) to be a drop-in replacement for the (previously) non-free mpg123 player.
|
2025-04-22 06:20:48 +03:00
|
|
|
> More information: <https://manned.org/mpg321>.
|
2020-07-01 13:10:14 +03:00
|
|
|
|
2025-03-27 15:53:12 +00:00
|
|
|
- Play an audio source exactly `n` times (0 means forever):
|
2020-07-01 13:10:14 +03:00
|
|
|
|
2025-05-03 05:57:20 +03:00
|
|
|
`mpg321 {{[-l|--loop]}} {{n}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
2020-07-01 13:10:14 +03:00
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
2025-05-03 05:57:20 +03:00
|
|
|
`mpg321 -K {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
2020-07-01 13:10:14 +03:00
|
|
|
|
|
|
|
- Play files randomly until interrupted:
|
|
|
|
|
2025-05-03 05:57:20 +03:00
|
|
|
`mpg321 {{[-Z|--random]}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
2020-07-01 13:10:14 +03:00
|
|
|
|
|
|
|
- Shuffle the files before playing them once:
|
|
|
|
|
2025-05-03 05:57:20 +03:00
|
|
|
`mpg321 {{[-z|--shuffle]}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
2020-07-01 13:10:14 +03:00
|
|
|
|
2021-01-10 14:32:46 -05:00
|
|
|
- Play all files in the current directory and subdirectories, randomly (until interrupted), with Basic Keys enabled:
|
2020-07-01 13:10:14 +03:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`mpg321 -B {{[-Z|--random]}} -K .`
|