mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #66] Feature request: RTP backend #55
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/66
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.
@sashahilton00 commented on GitHub (Jan 29, 2018):
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?
@sashahilton00 commented on GitHub (Jan 29, 2018):
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)@awiouy commented on GitHub (Feb 13, 2018):
A RTP backend is not required, see above.
Please close.