Pulseaudio to output RTP to internet
I want pulseaudio (remote instance) to remove the audio sent to the primary alsa device directly to RTP over the internet so that I can listen to it on VLC on my home computer.
in my /etc/pulse/default.pa
load-module module-rtp-send source=alsa_output.0.analog-stereo.monitor destination=x.x.x.x port=8080 loop=1
Where xxxx is my server IP
After running pulseaudio show netstat (I can't connect remote VLC to this)
udp 0 0 10.170.94.16:58606 x.x.x.x:9875 ESTABLISHED 2109/pulseaudio
udp 0 0 10.170.94.16:35597 x.x.x.x:8080 ESTABLISHED 2109/pulseaudio
It works with cvlc to get the intended results (I can connect with VLC uninstall for this)
cvlc -vvv pulse://alsa_output.0.analog-stereo.monitor --sout '#transcode{acodec=mpga,ab=32,channels:1}:rtp{sdp=rtsp://0.0.0.0:8080/test.sdp}'
which produces
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1944/pulseaudio
And I can connect to it.
So, I think I understand that pulseaudio is working correctly and is sending audio to port 8080. However, it is not listening for incoming connections to route data. How can I tell pulseaudio or set up the routing so that port 8080 carries the audio provided by rtp when there is an incoming connection. I can also see that cvlc is using rtsp as source.
Still a little confused.
source to share
No one has answered this question yet
Check out similar questions: