I have two separate Linux computers on the same LAN. One computer has speakers, the other computer has a monitor. To play a movie with video and sound I have two options:
- Play the movie on the computer with the speakers, and transfer the video over the network to the computer with the monitor.
- Play the movie on the computer with the monitor, and transfer the audio over the network to the computer with the speakers.
The first options works well using X11 forwarding:
$ ssh -X computer1
$ mpv movie.avi
For the second option I tried PulseAudio's network setup, setting the following in /etc/pulse/default.pa
on both computers:
load-module module-native-protocol-tcp auth-anonymous=1
load-module module-zeroconf-publish
load-module module-zeroconf-discover
Then, I run mpv
on the computer with the monitor. This works, but the audio is so choppy that it makes the movie unwatchable. Why is it that streaming video poses no problem but streaming audio is apparently hard? Doesn't uncompressed video use much more bandwidth than uncompressed audio?
scp
reports about 10MB/s in both directions. That isn't much, which could explain the choppy audio. However, I can't explain why the video still looks decent!