Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTP support for the output of the sound card #11

Open
vojenfr opened this issue Jun 5, 2018 · 3 comments
Open

RTP support for the output of the sound card #11

vojenfr opened this issue Jun 5, 2018 · 3 comments

Comments

@vojenfr
Copy link

vojenfr commented Jun 5, 2018

Hello @duncanthrax,
It's possible to add a RTP/DLNA support for the output instead of raw PCM stream?
So great driver!
Thanks you

@duncanthrax
Copy link
Owner

Hi @vojenfr,
these are separate things:

  • Adding RTP support should be easy. RTP supports 2-channel linear PCM as a default format, so it's probably just a matter of prepending the correct header to the data.

  • I'll not add DLNA advertisement support, since Scream is a pure kernel solution, and DLNA is too complex to implement in a kernel driver.

Adding RTP would have the advantage that the stream can be read by standard software, e.g. VLC. Is that what you want? What is your use case?

/tom

@vojenfr
Copy link
Author

vojenfr commented Jun 5, 2018

Yes exactly @duncanthrax , I would like to listen with vlc rtp://239.255.77.77:4010 .
And also redirect on a DLNA amplifier 😊
It is scheduled in the next release?

@duncanthrax
Copy link
Owner

I have it kind of working. There's some additional overhead because RTP expects PCM in network byte order.

Also VLC does not like picking up a restarting stream. I might have to send silence instead of stopping the stream when no audio is playing.

Finally, it seems that VLC adds quite some buffering and therefore delay. That might be fixable with config parameters.

If I go through with this, I'll offer an extra driver with RTP support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants