[GH-ISSUE #66] Feature request: RTP backend #55

Closed
opened 2026-02-27 19:28:34 +03:00 by kerem · 3 comments
Owner

Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/66

Issue by awiouy
Wednesday Jul 05, 2017 at 20:16 GMT
Originally opened as https://github.com/plietar/librespot/issues/211


I currently pipe librespot audio to ffmpeg to stream it to Kodi as RTP. This implies the following path: vorbis to s16le to pcm-alaw to RTP. It would therefore be advantageous to add an RTP backend to librespot, which is likely to shorten the path to: vorbis to RTP. I would gladly do this myself, but I have no experience at all with Rust. I hope that someone here will pick up the idea, and give it a try. Thank you in advance.

Originally created by @sashahilton00 on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/66 <a href="https://github.com/awiouy"><img src="https://avatars0.githubusercontent.com/u/9913019?v=4" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [awiouy](https://github.com/awiouy)** _Wednesday Jul 05, 2017 at 20:16 GMT_ _Originally opened as https://github.com/plietar/librespot/issues/211_ ---- I currently pipe librespot audio to ffmpeg to stream it to Kodi as RTP. This implies the following path: vorbis to s16le to pcm-alaw to RTP. It would therefore be advantageous to add an RTP backend to librespot, which is likely to shorten the path to: vorbis to RTP. I would gladly do this myself, but I have no experience at all with Rust. I hope that someone here will pick up the idea, and give it a try. Thank you in advance.
kerem 2026-02-27 19:28:34 +03:00
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by awiouy
Tuesday Jul 11, 2017 at 08:30 GMT


@plietar
I managed to configure pulseaudio to create an RTP stream, using these commands:
pactl load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100
pactl load-module module-rtp-send source=rtp.monitor destination_ip=127.0.0.1 port=6666
./librespot -c . --disable-audio-cache -n test --backend pulseaudio
On LibreELEC, pulseaudio seems to be more responsive than ffmpeg.
The pulseaudio backend could therefore be adapted to create a RTP stream.
@shanemeagher do you think you can do this?

<!-- gh-comment-id:361264042 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/awiouy"><img src="https://avatars0.githubusercontent.com/u/9913019?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [awiouy](https://github.com/awiouy)** _Tuesday Jul 11, 2017 at 08:30 GMT_ ---- @plietar I managed to configure pulseaudio to create an RTP stream, using these commands: pactl load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 pactl load-module module-rtp-send source=rtp.monitor destination_ip=127.0.0.1 port=6666 ./librespot -c . --disable-audio-cache -n test --backend pulseaudio On LibreELEC, pulseaudio seems to be more responsive than ffmpeg. The pulseaudio backend could therefore be adapted to create a RTP stream. @shanemeagher do you think you can do this?
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by awiouy
Tuesday Jul 11, 2017 at 16:57 GMT


I gather that something like #215 is all it takes to stream RTP via pulseaudio, see here:
github.com/awiouy/LibreELEC.tv@7a6a7a9b87/packages/addons/service/librespot/source/bin/librespot.start (L102-L113)

<!-- gh-comment-id:361264060 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/awiouy"><img src="https://avatars0.githubusercontent.com/u/9913019?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [awiouy](https://github.com/awiouy)** _Tuesday Jul 11, 2017 at 16:57 GMT_ ---- I gather that something like #215 is all it takes to stream RTP via pulseaudio, see here: https://github.com/awiouy/LibreELEC.tv/blob/7a6a7a9b87e87b2749725310f3e689dfaa9335b1/packages/addons/service/librespot/source/bin/librespot.start#L102-L113
Author
Owner

@awiouy commented on GitHub (Feb 13, 2018):

A RTP backend is not required, see above.
Please close.

<!-- gh-comment-id:365353782 --> @awiouy commented on GitHub (Feb 13, 2018): A RTP backend is not required, see above. Please close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#55
No description provided.