Play same music through different computers at the same time.
Reply #2 – 2015-05-16 11:36:03
Here is a free solution for streaming to a single machine on a LAN. I use ffmpeg to capture what is sent to my soundcard and push the stream to another machine on my network. It was hard to configure but this is what I use :1/ On the foobar machine (Please note you have to setup your soundcard as the default recording device), use this command line (replace your soundcard name and the target IP according to your setup"C:\Program Files\ffmpeg-win64-static\bin\ffmpeg" -f dshow -i audio="Wave (ASUS Xonar DG Audio Devic" -acodec copy -f rtp rtp://192.168.128.252:5004 2/ You can read the stream with ffplay (... or use any other player like vlc for instance) on the target machine, with this command line"C:\Program Files\ffmpeg-win32-static\bin\ffplay" -nodisp -vn -stats -acodec pcm_s16le config-wav-pcm16le.sdp where config-wav-pcm16le.sdp containsv=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name c=IN IP4 192.168.128.252 t=0 0 a=tool:libavformat 55.3.100 m=audio 5004 RTP/AVP 10 b=AS:1411 Please also note that on the target machine there is sometimes (if you leave ffmpeg and ffplay running permanently as I do) some unwanted buffering and delay, so I ended up with a workaround using this little vbs script instead of the command line #2 above, which will kill and restart the receiver every hour :@echo off :start start "Read Stream" "C:\Program Files\ffmpeg-win32-static\bin\ffplay" -nodisp -vn -stats -acodec pcm_s16le config-wav-pcm16le.sdp PING 1.1.1.1 -n 1 -w 3600000 >NUL taskkill /F /IM ffplay.exe >NUL PING 1.1.1.1 -n 1 -w 1000 >NUL goto start Now as you have guessed this works for a single machine only.Edit 2016-08-05 I have ported the receiver to a raspberry pi, command line and script below:Command line: lxterminal -t Streaming... --working-directory=/home/pi/Streaming -e ffplay -nodisp -vn -stats -infbuf -acodec pcm_s16le config-wav-pcm16le.sdpLoop script : while /home/pi/Streaming/Readstream.sh; do : ; sleep 36000 ; pkill ffplay ; done