PDA

View Full Version : Difficulty using SBT to reach streaming source (VLC) on LAN



Atlantic
2015-12-24, 07:40
I have a USB codec (ADC) plugged into a Windows laptop and I have VLC on that laptop playing the USB codec source through the laptop speakers. I've tried to setup VLC to (also) stream that source, but I cannot get my SB Touch to stream from it. Settings are:

Laptop IP : 192.168.0.101

VLC stream settings (4 different attempts):
(i) Stream via http, localhost, port 1234
(ii) Stream via http, 192.168.0.101, port 1234
(iii) Stream via rtp, 192.168.0.101, port 1234
(iv) 'Stream locally' ticked, Stream via http, localhost, port 1234

Laptop firewall settings: VLC has open access on all ports, either direction

Using 'tune in a URL' on SBS, http://192.168.0.101:1234, 'click on play', SBT tries to contact http://192.168.0.101, for a few seconds, then stops.

I'd be grateful for any advice, and in particular,
(a) Is this approach feasible, using VLC to stream a local source across the LAN to an SBT?
(b) Will SBT work ok with an http url such as I've been using?
(c) if anyone else uses VLC, which settings ought I be using? Should I 'tick' 'stream locally', and do I need to also fill in the url field on VLC's stream menu?

Would be grateful for any suggestions.

regards, Atlantic

bpa
2015-12-24, 07:47
For LMS to play a VLC stream - it needs ot have a name and extension and also VLC will only stream MP3

See this thread
http://forums.slimdevices.com/showthread.php?48568-Streaming-to-Squeezebox-using-VLC

d6jg
2015-12-24, 07:59
Try streamwhatyouhear - it works ok

Atlantic
2015-12-31, 07:18
For LMS to play a VLC stream - it needs ot have a name and extension and also VLC will only stream MP3

See this thread
http://forums.slimdevices.com/showthread.php?48568-Streaming-to-Squeezebox-using-VLC

That was a great link, helped me to get it going. I could connect an analogue source to a USB codec, plug the USB codec into a Windows laptop, and use VLC to stream the analogue source to any squeezebox player in the house. Exactly what I needed.

For anyone interested, here are the settings I used:

Laptop

- Analogue source (line level) plugged into USB codec inputs (ADC)

- Windows PC with VLC
Eg laptop on WiFi, I use static addresses and this laptop is 192.168.0.101

- Laptop Firewall set to give VLC full in/out access

- Sound settings (from Windows Control Panel) Enable USB codec in, Disable mic in, Disable line in
Enable Speakers out, disable USB codec out
Configure speakers to be full range - this may be needed to prevent Windows trying to 'compensate' the sound source

VLC settings

- VLC set to use default audio system
Set to stream as:
:sout=#transcode{acodec=mpga,ab=256,channels=2}:du plicate{dst=std{access=http,mux=raw,dst=192.168.0. 101:1234/vlc.mp3}}
Un-tick 'play locally' - this also may be needed to prevent Windows trying to 'compensate' the sound source, as well as preventing the annoying tinny sound

Squeezebox

- Use SBS 'Internet Radio, tune a URL', and set to http://192.168.0.101:1234/vlc.mp3

There are 2 things I would like to try sometime in the future:

- see if codec flac (acodec=flac) would work, with flac filename (vlc.flac), though bpa suggests this might not work
- see if I can get a Linux laptop to manage this - when I briefly tried, VLC couldn't see the USB codec source (though Audacity can).

Thanks to bpa for the link, and to d6jg for the streamwhatyouhear suggestion (which looks useful but I didn't need, in the end)

regards, Atlantic