I have spent many hours trying to get VLC to stream audio from my Windows (64-bit) PC to LMS (and then to a Touch). I often use a website that does not provide a stream and must be run in a browser, and want to listen to it via my Touch.
I have seen that others have made it work, but I could not do so for quite a while.
To cut a long story short, what I didn't twig was that I might need to change the default port allocated by VLC. The default is 8080. That didn't work, and I failed to realise that was the problem for far too many hours. Changing to 8079 fixed it immediately. So, what worked was a Windows shortcut containing:
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" dshow:// :dshow-adev="Monitor (M-Audio Delta Audiophi" :dshow-caching=200 --sout "#transcode{vcodec=none,acodec=mp3,ab=320,channels =2,samplerate=44100}:http{dst=:8079/st.mp3}" :no-sout-rtp-sap :no-sout-standard
Entering http://192.168.1.9:8079/st.mp3 then runs the stream (the IP address being that of the PC running VLC).
Beware the shortcut parameter length is almost at the maximum allowed.
You would need to change your audio device (adev=) to whatever card you have with a monitor facility (the name has a maximum length as shown by the truncation of 'AudioPhile' in my card's name). Some cards may work, and some may not.
I won't bore you with all the things I tried (firewalls, other devices, many other VLC options and so on).
It was useful to check that VLC could see the audio signal by saving it to a local file first, and playing that, then trying to stream. I also tried using rtsp to another pc also running VLC, and that worked, but http on port 8080 to the other PC did not work.
I did this mainly in preparation for trying to do the same thing on my laptop. That's a different kettle of fish, running debian, and with pulse audio. I have not yet found out how to make that work, but at least I now know that I can in principle make LMS work with VLC.
Results 1 to 10 of 18
-
2012-02-13, 11:15 #1Senior Member
- Join Date
- Nov 2010
- Location
- Hertfordshire, UK
- Posts
- 513
Getting VLC to stream audio to LMS
LMS 7.8 on VortexBox Midi, FLACs 16 or 24 bit. Touch on Ethernet (in another room), digital out to a Musical Fidelity M1 CLiC. Old wireless laptop running Linux Mint Debian controls server using Chromium. Squeezelite on Ubuntu & Windows desktops plus the laptop. Meridian Explorer USB DAC to listen directly to Vortexbox & other PCs as required. Spare Touch in loft!
-
2012-02-13, 11:58 #2Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,249
Well done. VLC is a very versatile tools but a pain to get the right combination of options.
Some additional notes.
1. the dshow-adev parameters will depend on the user own hardware and drivers. It is what MS call "DirectShow". It can be many different audio sources including Tuner cards for FM or DVB-S/DVB-T.
2.If you add "#noslim=1" onto the end of the URL and you have a numeric IP address such as http://192.168.1.9:8079/st.mp3#noslim=1, and make this a favorite on mysb.com and you can play the stream on a mysb.com connected player without having to have a local LMS running.
3. You can get over the maximum length of a shortcut issue by putting the over length command in a bat file and make the shortcut execute the bat file.
-
2012-02-13, 13:24 #3Senior Member
- Join Date
- Nov 2010
- Location
- Hertfordshire, UK
- Posts
- 513
Thanks. I was in the bath when the solution to the command length problem occurred to me. I haven't written a bat file for a decade or more, so it took a while to recall it. I was just about to write one when you penned your response.
I'll try #noslim once I've got everything else up & running the way I want it.
Now to tackle 'pulse audio' on linux. I believe I need a newer version of vlc to support that, so some compilation may be in order.LMS 7.8 on VortexBox Midi, FLACs 16 or 24 bit. Touch on Ethernet (in another room), digital out to a Musical Fidelity M1 CLiC. Old wireless laptop running Linux Mint Debian controls server using Chromium. Squeezelite on Ubuntu & Windows desktops plus the laptop. Meridian Explorer USB DAC to listen directly to Vortexbox & other PCs as required. Spare Touch in loft!
-
2012-02-13, 13:43 #4Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,249
-
2012-02-21, 00:09 #5Junior Member
- Join Date
- Feb 2012
- Posts
- 12
Thanks very much, this along with your related info in the linux waveinput thread enabled me to get VLC system audio streaming working using VLC 2.0 in Ubuntu Linux...spent many hours fooling with VLC streaming myself in OS X and Linux until now
-
2012-03-01, 07:25 #6Senior Member
- Join Date
- May 2008
- Location
- United States
- Posts
- 8,166
Without any knowledge of this approach (other than I have VLC on my laptop), I'm hoping to do the same thing (so I can play wolfgang's vault concerts on my SB). But I'm confused. My dell laptop has the following info regarding sound drivers. What would I enter in the adev= above, if it is even possible with the dell:
IDT High Definition Audio CODEC
NVIDIA High Definition AudioLocation 1: VortexBox Appliance 6TB (2.2) > LMS 7.7.2 > Transporter, Touch, Boom, Radio w/Battery (all ethernet)
Location 2: VBA 3TB (2.2) > LMS 7.7.2 > Touch > Benchmark DAC I, Boom, Radio w/Battery (all ethernet except Radio)
Office: Win7(64) > LMS 7.7.2 > SqueezePlay
Spares: VBA 4TB, SB3, Touch (3), Radio (3), CONTROLLER
Controllers: iPhone4S (iPeng), iPad2 (iPengHD & SqueezePad), CONTROLLER, or SqueezePlay 7.7 on Win7(64) laptop
Ripping (FLAC) - dbpoweramp, Tagging - mp3tag, Spotify
-
2012-03-01, 07:43 #7Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,249
Use the Recorder accessory to test if it is possible to record your audio. Then you can start testing with VLC - VLC is very picky and so it is better to use Recorder to make sure the audio source is set up correctly.
-
2012-03-01, 07:51 #8Senior Member
- Join Date
- Nov 2010
- Location
- Hertfordshire, UK
- Posts
- 513
What devices show up as recording devices in the:
- Control Panel, Sound, Recording tab?
You need a device which monitors sound. Creative audio devices tend to have 'What U Hear'. Some others have 'Stereo Mix'. Under that heading you should find a device name. In my case, with an M-Audio card, under 'Monitor' is the M-Audio device that I use.LMS 7.8 on VortexBox Midi, FLACs 16 or 24 bit. Touch on Ethernet (in another room), digital out to a Musical Fidelity M1 CLiC. Old wireless laptop running Linux Mint Debian controls server using Chromium. Squeezelite on Ubuntu & Windows desktops plus the laptop. Meridian Explorer USB DAC to listen directly to Vortexbox & other PCs as required. Spare Touch in loft!
-
2012-03-01, 08:27 #9Senior Member
- Join Date
- May 2008
- Location
- United States
- Posts
- 8,166
recording tab has:
IDT High Definition Audio CODEC
I've set this as my default device, and just did a test using the simple windows sound recorder and it did capture the stream from the web player on wolfgang's vault and save it as a file (WMA file it seems was the only option in the windows recorder).
so would my windows shortcut be:
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" dshow:// :dshow-adev="Monitor (IDT High Definition Au" :dshow-caching=200 --sout "#transcode{vcodec=none,acodec=mp3,ab=320,chan nels =2,samplerate=44100}:http{dst=:8079/st.mp3}" :no-sout-rtp-sap :no-sout-standardLocation 1: VortexBox Appliance 6TB (2.2) > LMS 7.7.2 > Transporter, Touch, Boom, Radio w/Battery (all ethernet)
Location 2: VBA 3TB (2.2) > LMS 7.7.2 > Touch > Benchmark DAC I, Boom, Radio w/Battery (all ethernet except Radio)
Office: Win7(64) > LMS 7.7.2 > SqueezePlay
Spares: VBA 4TB, SB3, Touch (3), Radio (3), CONTROLLER
Controllers: iPhone4S (iPeng), iPad2 (iPengHD & SqueezePad), CONTROLLER, or SqueezePlay 7.7 on Win7(64) laptop
Ripping (FLAC) - dbpoweramp, Tagging - mp3tag, Spotify
-
2012-03-01, 08:30 #10Senior Member
- Join Date
- May 2008
- Location
- United States
- Posts
- 8,166
Location 1: VortexBox Appliance 6TB (2.2) > LMS 7.7.2 > Transporter, Touch, Boom, Radio w/Battery (all ethernet)
Location 2: VBA 3TB (2.2) > LMS 7.7.2 > Touch > Benchmark DAC I, Boom, Radio w/Battery (all ethernet except Radio)
Office: Win7(64) > LMS 7.7.2 > SqueezePlay
Spares: VBA 4TB, SB3, Touch (3), Radio (3), CONTROLLER
Controllers: iPhone4S (iPeng), iPad2 (iPengHD & SqueezePad), CONTROLLER, or SqueezePlay 7.7 on Win7(64) laptop
Ripping (FLAC) - dbpoweramp, Tagging - mp3tag, Spotify

Reply With Quote

