Pulsaudio Network Streaming

Hi,

has anyone here being successful streaming music from a Linux-PC to a Raspberry Pi using Pulsaudio?

formatting link

My problem: The sound is constantly stuttering.

There are loads of "solutions" proposed

formatting link
but nothing helps.

Best regards, Gernot.

Reply to
Gernot Pr3nster
Loading thread data ...

Have you tried netcat? Unless you can guarantee capturing the exact beginning of the stream, converting the sound data to a RAW format would probably be advisable. If the original data stream is available at higher than real-time speed, netcat will produce high latency but should eliminate underruns. (I use a Pi to relay MPEG video in real time from a PVRUSB2 through the Pi then via netcat to a larger machine for storage.)

Another option for your audio stream might be to use [Net]Jack and the Jack-to-ALSA interface. However, that's not easy to get working.

HTH

--
Robert Riches 
spamtrap42@jacob21819.net 
(Yes, that is one of my email addresses.)
Reply to
Robert Riches

Ahhh, netcat for audio! I've done this 15 years ago with toolame (MPEG Layer 2) live streaming. I've to find my scripts from back then.

Please elaborate on that!

Well, Pulseaudio should be easy, shouldn't it? I use Jack on my Desktop Computer (Ubuntu Studio), that's enough for me.

Thank you, best regards, Gernot.

Reply to
Gernot Pr3nster

As you wish.

The PVRUSB2 or its driver was locking up every week or two (or maybe more often), which would require a reboot of my main machine to recover the driver and such. So, I connected the PVRUSB2 to a Raspberry Pi, and connected the Pi to the private network which is connected to the main machine's second NIC. I run a cron job on the main machine that uses ssh to cause the Pi to run mplayer to read video from the PVRUSB2 and send it over netcat to the main machine. The main machine reads the data from netcat and writes it to a file. For my purposes, one fixed-time recording per day, it works well as a substitute for MythTV.

Well, one would think so. However, given the common authorship with systemd, my expectations would be low.

HTH

--
Robert Riches 
spamtrap42@jacob21819.net 
(Yes, that is one of my email addresses.)
Reply to
Robert Riches

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.