by ahepp · 3y ago · 0 comments
ffmpeg -stream_loop -1 -re -i gettysburg.wav -f mp3 udp://239.0.0.1:1234
on one device, and ffplay -i udp://239.0.0.1:1234
on another device.You can also play the stream with ffmpeg doing something like
ffmpeg -i udp://239.0.0.1:1234 -f pulse defaultI've experimented a tiny bit with the builtin pulseaudio RTP sink/source, but I've not used it extensively. I'm not sure if cutting out ffmpeg would be beneficial.
Managed to get the lag down to a usable amount for algorithmic music, but would not be suitable for playing an instrument remotely
Such a powerful tool... And thank you for letting us know about this trick.