mirror of
https://github.com/ivabus/lonelyradio
synced 2024-11-10 02:25:17 +03:00
39 lines
794 B
Markdown
39 lines
794 B
Markdown
# 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
|
|
|
|
```
|
|
lonelyradio [-a <ADDRESS:PORT>] <MUSIC_FOLDER> [-p] [-w]
|
|
```
|
|
|
|
All files (recursively) will be shuffled and played back. Public log will be displayed to stderr, private to stdout.
|
|
|
|
### 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). |