scream icon indicating copy to clipboard operation
scream copied to clipboard

RTP support for the output of the sound card

Open vojenfr opened this issue 6 years ago • 3 comments

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

vojenfr avatar Jun 05 '18 14:06 vojenfr

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

duncanthrax avatar Jun 05 '18 14:06 duncanthrax

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

vojenfr avatar Jun 05 '18 14:06 vojenfr

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.

duncanthrax avatar Jun 06 '18 08:06 duncanthrax