I'm streaming audio from my Windows 7 laptop to a sound card attached to a router. I have a little batch script to start streaming.
REM Kill any instances of vlc
taskkill /im vlc.exe
"c:\Program Files\VideoLAN\VLC\vlc.exe" <parameters to start http streaming>
REM Wait for vlc
TIMEOUT /T 10
REM start playback on router
plink -ssh [email protected] -pw password killall -9 madplay
plink -ssh [email protected] -pw password wget -q -O - http://192.1.159:8080/audio | madplay -Q --no-tty-control - &
As you see the http stream is hard coded. It would be nice to get the address dynamically to reuse the script on other machines. Any ideas?
smbclient
+nss_wins
) and Apple Bonjour (avahi
+nss_mdns
). (I could also suggest LLMNR, but I'm not sure if there are any Linux resolvers for it.) This would remove the need for specifying the address in the router.