[WINDOWS] HOW-TO stream Last.FM, Pandora, etc. to XBMC using VLC (on Windows)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Verso Offline
Junior Member
Posts: 2
Joined: Jul 2007
Reputation: 0
Post: #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.
find quote
Bigfoot87 Offline
Senior Member
Posts: 134
Joined: Dec 2006
Reputation: 0
Location: Netherlands
Post: #2
Thanks for the tutorial! I'm gonna use it in combination with a microphone. Big Grin
find quote
QuickJolt Offline
Junior Member
Posts: 11
Joined: Jul 2006
Reputation: 0
Post: #3
ok hopefully the answer slaps me in the face right after this but there is no "DirectShow" tab in linux. Let me give you a list of the tabs available "File, Disc, Network, Video4Linux, PVR, DVB" Thank you for your tutorial now im going to blindly test settings out and hop for the best ill let you know what happens. I am using Kubuntu(KDE) if that matters at all and its version 0.8.6
find quote
Verso Offline
Junior Member
Posts: 2
Joined: Jul 2007
Reputation: 0
Post: #4
Hmm, good point. DirectShow is for Windows machines, obviously. I don't have a Linux machine here so I can't test anything myself. It'd be good to hear whether you got it working, though.
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #5
It works! Great tutorial thanks! Big Grin
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #6
last.fm is already integrated quiet nicely into xbmc Smile http://wiki.xbmc.org/?title=LastFM

good tut though. You may want to ask for ninja status and update this page http://wiki.xbmc.org/?title=HOW-TO:_Stre...LAN-Client) in the wiki.


maybe we can get pandora going as a plugin? idk because its all flash... I'll look at it and see if I can figure anything out Confused
find quote
kemik Offline
Senior Member
Posts: 140
Joined: Oct 2008
Reputation: 0
Post: #7
I've setup LastFM on my XBMC so entered the username/password. Which is correct as when I go into the Music section I can see my fav artists, etc

However, if I choose to play anything I get no sound Sad

Shoutcast works btw
find quote
scheu001 Offline
Junior Member
Posts: 1
Joined: Nov 2008
Reputation: 0
Post: #8
Anyone else out there using Orb to stream media? I can watch TV from my home PC's TV tuner, watch any movie or TV show I've recorded, and listen to all my MP3s from a Windows Mobile device (or any PC). I can even monitor a webcam attached to my PC. If I could somehow incorporate streaming a Pandora feed through Orb, my conquest of the galaxy would be nearly complete!
find quote
s789 Offline
Junior Member
Posts: 3
Joined: May 2011
Reputation: 0
Post: #9
Hi anybody know how can i play this link in my VLC player .http://bglive-a.bitgravity.com/saharatv/...ive/feed01 i can play some other links http://bglive-a.bitgravity.com/ uses same company</div>
<script language="javascript">
var EmbedCode="<embed id=\"player\" src=\"http://bitcast-b.bitgravity.com/player/6/bitgravity_player_v6_1_4.swf\" wmode=\"opaque\" allowfullscreen=\"true\" flashvars=\"AutoPlay=true&amp;streampath=http://bglive-a.bitgravity.com/saharatv/secure/live/feed01?e=0%26h=04557ca5c46277708ebff27f993dc344&amp;Mode=live&amp;VideoFit=stretch&amp;ColorBase=#070000&amp;ColorControl=#4189ff&amp;DefaultRatio=1.777778&amp;File=http://bglive-a.bitgravity.com/saharatv/secure/live/feed01?e=0%26h=04557ca5c46277708ebff27f993dc344&amp;LogoImage=&amp;template=/styles/auth.php&amp;sessionid=v0l3r2j&amp;adserver=no&amp;LogoLink=http://www.livetvchannelsfree.com&amp;ColorHighlight=#1c0005&amp;LogoPosition=topright&amp;ColorFeature=#000659\" width=\"658\" align=\"middle\" height=\"420\"></embed>";
$('#videoPlayer').html(EmbedCode)
</script>
find quote
kingtiger01 Offline
Junior Member
Posts: 6
Joined: Sep 2008
Reputation: 0
Post: #10
Not anymore(for atleast pandora)!!!!

Pandora For XBMC4XBOX...
(my modified version) script.xbmc.XBOX.Pandora V1.2.6-XBOX by Kingtiger
(Either install using Addons for Xbox zip Installer OR Install in "Q:/scripts/", and copy the files inside the "Skins", into youre currently active skins ntsc/720p/1080p folder/s)

Pandora For XBMC on Native OS'es(http://forum.xbmc.org/showthread.php?tid=70471)

V1.2.6(script)
Install this using the addon installer(install zip)

then MANUALLY update using this below.

--UPDATES---
Git Trunk Tarball( extract into %userprofile%/appdata/roaming/xbmc/plugins/script.xbmc.pandora)

-------------------------------------

If my build stops working, and i havent updated this, PLEASE let me know. While i dont take Credit, for the original source. I do take credit for the configuration fixes and version update. Original-Source
(This post was last modified: 2011-10-17 11:47 by kingtiger01.)
find quote
coendeurloo Offline
Senior Member
Posts: 264
Joined: Jan 2010
Reputation: 0
Post: #11
Could this guide be updated? It doesn't seem to work...

Or maybe it's because I can't select my sound card (it just says default, none and microphone).

[Image: widget]
find quote
rashid420 Offline
Senior Member
Posts: 252
Joined: Dec 2008
Reputation: 0
Post: #12
kingtiger01 Wrote:Not anymore(for atleast pandora)!!!!

Pandora For XBMC4XBOX...
(my modified version) script.xbmc.XBOX.Pandora V1.2.6-XBOX by Kingtiger
(Either install using Addons for Xbox zip Installer OR Install in "Q:/scripts/", and copy the files inside the "Skins", into youre currently active skins ntsc/720p/1080p folder/s)

Pandora For XBMC on Native OS'es(http://forum.xbmc.org/showthread.php?tid=70471)

V1.2.6(script)
Install this using the addon installer(install zip)

then MANUALLY update using this below.

--UPDATES---
Git Trunk Tarball( extract into %userprofile%/appdata/roaming/xbmc/plugins/script.xbmc.pandora)

-------------------------------------

If my build stops working, and i havent updated this, PLEASE let me know. While i dont take Credit, for the original source. I do take credit for the configuration fixes and version update. Original-Source

I am unable to enter my login/password. I'm using SliK skin. Maybe your plugin does not work with this skin.

From other skins I was able to enter my password. However, still unable to connect.

Please help !!!
(This post was last modified: 2011-12-11 17:29 by rashid420.)
find quote