2024-01-28 20:18:18 +03:00
|
|
|
# lonelyradio
|
|
|
|
|
|
|
|
> TCP radio for singles
|
|
|
|
|
|
|
|
Radio that uses unencrypted TCP socket for broadcasting raw PCM (16/44.1/LE) stream
|
|
|
|
|
|
|
|
Decodes audio streams using [symphonia](https://github.com/pdeljanov/Symphonia).
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo build -r
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
```
|
2024-01-29 11:35:48 +03:00
|
|
|
lonelyradio [-a <ADDRESS:PORT>] <MUSIC_FOLDER> [-p]
|
2024-01-28 20:18:18 +03:00
|
|
|
```
|
|
|
|
|
2024-01-29 11:35:48 +03:00
|
|
|
All files (recursively) will be shuffled and played back. Public log will be displayed to stderr, private to stdout.
|
2024-01-28 20:18:18 +03:00
|
|
|
|
|
|
|
### Clients
|
|
|
|
|
|
|
|
FFplay (from FFmpeg)
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nc <SERVER> <PORT> | ffplay -f s16le -vn -ac 2 -ar 44100 -nodisp -autoexit -
|
|
|
|
```
|
|
|
|
|
|
|
|
MPV
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nc <SERVER> <PORT> | mpv --audio-channels=stereo --audio-samplerate=44100 --demuxer-rawaudio-format=s16le --demuxer=rawaudio -
|
|
|
|
```
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
lonelyradio is licensed under the terms of the [MIT license](./LICENSE).
|