[WINDOWS] HOW-TO stream Last.FM, Pandora, etc. to XBMC using VLC (on Windows)
#1
I've read a lot of articles about streaming Last.FM, Pandora etc. to XBMC. Most of them are vague, links are broken, info is outdated, etc. etc. So I thought I'd post how to do it here. Maybe someone will find this information useful.

What this does and what it doesn't do:
  • Allows you to stream whatever is going through your sound card to XBMC over your LAN, including Last.FM.
  • Useful only for listening to Last.FM remotely, not for controlling Last.FM in any way.
  • Does not involve recording the stream.
  • Does not allow you to view track or artist info in XBMC.
  • Does not allow you to skip tracks, fast forward, rewind, etc.

VLC, or VideoLAN, is a free cross-platform (Windows, Mac OS X, Linux) media player that can also act as a streaming server. It is available from here: http://www.videolan.org/


Here is what you (minimally) need to do:

  1. Start VLC

  2. Select File...Open Network Stream...

  3. Go to the DirectShow tab.

  4. Set "Video device name" to None.

  5. Hit Refresh next to "Audio device name" and then select your sound card from the list.

  6. Check the Stream/Save box and hit Settings.

  7. Change the settings as follows.

  8. Under "Outputs", check "http" and enter the local IP address of the server, i.e., the machine that will be doing the streaming. (We'll use 10.100.100.100 in this example.). Leave the port as is, i.e., 1234.

  9. Set "Encapsulation method" to Ogg.

  10. Check "Audio codec" under "Transcoding options" and set it to MP3, 256 kbps, 2 channels.

  11. Hit OK twice and VLC should launch and start streaming whatever is coming out of your sound card.


In XBMC, you'll need to manually receive the stream. Here's how:

  1. On your computer, create a text file called "VideoLAN.strm". (N.B., the extension has to be .strm, not .txt or anything else. Windows users beware if your system hides the extension from view.). This file has to contain a single line:
    Quote:http://10.100.100.100:1234
    (In other words, the text file has to reference the IP address and port of the streaming server on the LAN, as specified in step 8, above.)

  2. On your XBOX, copy this text file to XBMC/UserData/playlists/music. (Alternatively, you could keep the text file in a shared folder on your network and access it via Samba from the XBOX, but personally, I prefer to have the file in my playlists directory.)

  3. Open this file in XBMC. It will take maybe 30 seconds to cache the stream before you hear anything.


Other notes:
  • I seem to get better results when I set the volume in VLC to 50%.

  • Windows users: I actually run VLC from a shortcut on my desktop using the following command line (which also sets the volume to 50%):
    Code:
    "C:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev="none" :dshow-adev="Realtek AC97 Audio" :dshow-size="" :sout=#transcode{acodec=mp3,ab=256,channels=2}:duplicate{dst=std{access=http,mux=ogg,dst=10.100.100.100:1234}} --volume 128
    (Obviously, you will have to edit this command to match your system. Change the program path, IP address and audio card name as required. You can get the name of your audio card by following the directions above for starting VLC manually.)

  • I have only been able to get this to work using Ogg encapsulation and MP3 audio encoding. Others have reported success using other methods, but I haven't been able to duplicate that success.

  • VideoLAN (VLC) is a very powerful player/streamer. You can stream unsupported audio/video codecs to XBMC using it. However, these applications are beyond the scope of this how-to.
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average


Messages In This Thread
[WINDOWS] HOW-TO stream Last.FM, Pandora, etc. to XBMC using VLC (on Windows) - by Verso - 2007-07-23, 21:56
[No subject] - by Bigfoot87 - 2007-07-29, 01:36
[No subject] - by QuickJolt - 2007-08-21, 14:21
[No subject] - by Verso - 2007-09-16, 07:41
[No subject] - by stacked - 2008-08-08, 04:22
[No subject] - by rwparris2 - 2008-08-08, 07:10
[No subject] - by kemik - 2008-10-28, 13:44
Pandora Streaming with Orb? - by scheu001 - 2008-11-26, 17:00
[No subject] - by s789 - 2011-05-05, 13:26
[No subject] - by kingtiger01 - 2011-10-17, 11:15
[No subject] - by coendeurloo - 2011-10-19, 23:00


Logout Mark Read Team Forum Stats Members Help
[WINDOWS] HOW-TO stream Last.FM, Pandora, etc. to XBMC using VLC (on Windows)51
This forum uses Lukasz Tkacz MyBB addons.