Skip to content

Instantly share code, notes, and snippets.

@jclosure
Last active May 5, 2024 01:39
Show Gist options
  • Star 33 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • 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

@tormozit
Copy link

tormozit commented Oct 2, 2021

When I have running Winamp with Spotiamp, if I send "Next track" multimedia command from my keyboard then Winamp catches it and makes short pause and continues play current track. But I want Spotiamp to switch next track. How to do that?

@The92Ghost
Copy link

Is it just me or did this software stop working? I am trying to play it in 3DX Chat but it isn't working.

@StrictlySkyler
Copy link

Yeah, mine still plays, but only a single song at a time -- the auto-playlist advance seems to have broken?

@dev-brendanprice
Copy link

With some additional elbow grease, I can confirm that this still works as of making this post.

@dunk61
Copy link

dunk61 commented Jul 15, 2022

apparently you need to have spotify premium... lame.

@serverkur
Copy link

not working :/

@dev-brendanprice
Copy link

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.

@theonerong
Copy link

this still works, and in the latest version of winamp (which the instructions' old link redirects to). I dunno if the reg keys are required but I think you can do that step before installing spotiamp, or at least probably before you run spotiamp. be sure to download and install winamp 5.9 or whatever old version you wanna try, then download and install the linked spotiamp, RUN spotiamp and log into your spotify account (mine is premium), then click the menu icon at top left of spotiamp and click settings > enable shoutcast server - and this is the point I believe you get the firewall prompt (I checked all the options). next you need to press the eject button in spotiamp to see your list of playlists, pick one, start playing, then go back to winamp (both spotiamp and winamp have to be running) and click the menu icon at top left then play > URL, and enter either the loopback address in the instructions or your relevant computer IP and click Open. I think I had to make sure spotiamp was playing before I could control play and pause via winamp. and of course, menu > visualization > start/stop plugin, and enjoy the milkdrop. Also I did this all on windows 11.

@minionlvr
Copy link

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

@dev-brendanprice
Copy link

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

@RubyTiger18
Copy link

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...

@Loganicx
Copy link

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

@dev-brendanprice
Copy link

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!

@kaiba2oo8
Copy link

kaiba2oo8 commented Apr 23, 2023

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

I'm not able to get the URL working, any ideas what I could have possibly done wrong?

@sdancer75
Copy link

sdancer75 commented May 11, 2023

It works just fine (premium) with Windows 10. WinAmp v.5.666 and Spotiamp v.0.2.06. I wish it could play flac.

https://i.ibb.co/1XYSVwy/Screenshot-9.jpg

Screenshot

@huberatelier
Copy link

Is there a way to make local tracks appear?

@sdancer75
Copy link

Is there a way to make local tracks appear?

what do you mean by local tracks? You can listen/download the tracks you have in the Spotify playlists.

@dev-brendanprice
Copy link

Is there a way to make local tracks appear?

what do you mean by local tracks? You can listen/download the tracks you have in the Spotify playlists.

They mean tracks that have been made available to Spotify but originated from their computer. i.e they downloaded the tracks from the internet and want to play them on Spotify amongst other tracks that are, available on Spotify, perhaps all in one playlist together.

@dev-brendanprice
Copy link

Is there a way to make local tracks appear?

You have to put these local tracks/songs into a playlist for that playlist to then update on the api, thus being able to play your local file on winamp.

This is because the API is only able to pull files from the servers that Spotify hosts their data on, without this local file being exposed to these serves in some form, there is no possible way for winamp to find your local files through Spotify.

@TheDorner
Copy link

whenever i paste the url into winamp it reads "[ICY 200 OK]" then the link. if i click on it i get a popup that says there was a problem starting the mp3 codec and asks if i want to read a guide, which brings me to a deleted site, any fixes?

@greymesa
Copy link

works as of august 2023.

@adventus6
Copy link

Yeah, mine still plays, but only a single song at a time -- the auto-playlist advance seems to have broken?

same issue for me as well. any fixes?

@GammaPotato
Copy link

Still working perfect on February 2024

@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?

@Oxzyyy
Copy link

Oxzyyy 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

@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!

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