Skip to content

Instantly share code, notes, and snippets.

@jclosure
Last active July 6, 2024 20:41
Show Gist options
  • Save jclosure/d4b9e7c944cf66e0e20bb515c282400e to your computer and use it in GitHub Desktop.
Save jclosure/d4b9e7c944cf66e0e20bb515c282400e to your computer and use it in GitHub Desktop.
How to play your Spotify music in Winamp and get Visualizatons

Spotiamp features a builtin Shoutcast® server, so you can easily stream the music to any device supporting Shoutcast, such as Sonos.

Download and install Winamp

I've installed version 5.8

https://www.winamp.com/

Download and setup Spotiamp

I used the installed ver, but it shouldn't matter if you want to use the stand-alone ver. When it prompts you to allow network access, select public and private networks so the windows firewall doesn't block your server port.

http://web.archive.org/web/20141208232737/http://spotiamp.com/

To get the Shoutcast servers's codec to work properly in Windows 10, you need to enable the codec in the registry.

  1. Open a cmd.exe window as Administrator
  2. Run the following 2 commands
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\drivers.desc" /v "%SYSTEMROOT%\SysWOW64\l3codecp.acm" /t REG_SZ /d "Fraunhofer IIS MPEG Audio Layer-3 Codec (professional)" /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Drivers32" /v "msacm.l3acm" /t REG_SZ /d "%SYSTEMROOT%\SysWOW64\l3codecp.acm" /f

Now you can stream your spotify playlists via shoutcast. Just enable the Shoutcast server in the settings menu and press play in Spotiamp.

Open winamp and go to File->Open URL. The URL to play is: http://127.0.0.1:5010/play.pls. Replace 127.0.0.1 with the IP of your computer.

image

@dev-brendanprice
Copy link

dev-brendanprice commented Feb 23, 2024

Thank you for this, i don't need the visuals but for some reason i'm not able to get spotify to play on my computer (Nor foobar, but i was able to use Winamp). Also right now March 4, 2023, it seems all i had to do was download the OG link and login with my account. I didnt have to do the IP stuff...

Works perfect on Win 7, just installed and logged in. Thanks!

No problem!

not working :/

It only works if you have Spotify premium apparently. Additionally, these docs are sort of out of date and you would have to go the extra mile to get it working (in my case).
First thing you should do is download both winamp (the old version) and spotiamp. Spotiamp is a fork of winamp that just runs with a Spotify JDK under your account.
You can stream the audio to winamp via spotiamp in the menus, it gives you a url that streams audio data.
Once winamp is using the spotiamp stream url, you are able to set up a visualisation canvas via the winamp menus.
Note that you do not need spotify to be open at any point unless its for debugging a non working setup. Also i say menus because i am currently vacant from my home desktop and cannot give concrete guidance.

Hi, quick question, how to see that URL that streams audio data?? Been searching all over spotiamp but I can't really find it

image

  • You should have spotiamp and winamp open at the same time to do this
  • Go to the spotiamp context menu > Settings > Enable Shoutcast Server (on port 5010) (above image)
  • Go to the winamp context menu > Play > URL > Enter this URL: http://127.0.0.1:5010/play.pls

Try and play something from spotiamp and it should buffer it on winamp From this point, you should be able to use the canvas/visualization mode

A little late but is there something a can do to fix this problem?

when I try to connect the spotiamb and winamp with the url winamp just says "[connecting to host]" and the url but nothing happens. I belive it takes the url as a song and just plays nothing but I have no idea what to do. Screenshot 2024-02-23 051234

Some things that you could try/verify:

  1. Ensure that you have enabled the Shoutcast Server on spotiamp
  2. Ensure that you have correctly entered http://127.0.0.1:5010/play.pls into winamp
  3. Check if your windows firewall is not blocking port 5010
  4. Check if your router is not blocking port 5010 (should never be the case)
  5. AFAIK it may only work if you have a Spotify Premium account
  6. If all else fails, try http://localhost:5010/play.pls instead of the URL in step 2

@Oxzyyy
Copy link

Oxzyyy commented Feb 23, 2024

How do I check if firewall and my router are blocking port 5010?
Also i am on premium so its probably not that.

@raider3303
Copy link

Can you use this with wacup too?

@lucaoskaique
Copy link

lucaoskaique commented Mar 3, 2024

Got this error when press play button in winamp after URL was inserted
image

@Araminta
Copy link

Araminta commented May 5, 2024

Works as of May 4 2024. Thx!

@leandrogrupozani
Copy link

install, log in on spotify, estart shoutcast, it read the add to playlist but i can open a playlist. how can i do it?

working, ty

@Bbenji3
Copy link

Bbenji3 commented May 17, 2024

Works! I'm new to computers and all that stuff so it took me awhile but I got it thanks to the simple instructions. Thanks!

@fukionline
Copy link

Can you use this with wacup too?

i'm pretty sure wacup is an entirely different program backend-wise, or at least intends to be in the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment