Finally got audio streaming working, using VLC

vlc -vvv rtp://127.0.0.1:46998 --sout '#rtp{dst=192.xxx.x.xxx,port=5004,sdp=rtsp://192.xxx.x.xxx:9898/desktop.sdp}'

Now, I need the transcoding. The connection died, it just stopped playing it.

vlc -vvv rtp://127.0.0.1:46998 --sout '#transcode{acodec=mp3,ab=256,channels=2}:rtp{dst=192.xxx.x.xxx,port=5004,mux=ts,sdp=rtsp://192.xxx.x.xxx:9898/desktop.sdp}'

You have to open a port on the firewall. If different VLANs, that are isolated.

/etc/pulse/default.pa:

load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
load-module module-rtp-send source=rtp.monitor destination=127.0.0.1 port=46998 loop=1

There is a delay. Just pause music, and you’ll see.

Don’t bother, the audio delay sucks.

Glad, I didn’t send it to the Mac mini, then my iPhone. I’d waste money on Airfoil, and it would suck.

It drains the battery on my phone too, if you put the screen to sleep, the audio stops. Yet, Pandora can play in the background.

You can’t hear the GPU fan very much, with those earbuds on.

I’m to lazy to unpair from my iPhone, then pair to desktop.