Proxy server to support Youtube for Audioshield

I got this in Windows 10 too, here’s how I fixed it:

  1. Download FFMPEG from https://ffmpeg.zeranoe.com/builds/ (I downloaded the shared version but the static might also work)
  2. Extract the 7z
  3. Update the PATH environment variable to include the path to the extracted FFMPEG bin folder
  4. Execute ‘node index.js’ as before and the audio should load as described in the pastebin instructions

(You will have to close/reopen any command prompt windows for the PATH changes to take effect)

/u/-olli- this is the crash I mentioned up above in the thread.

Sure, integrating other services could be done even now. The proxy intercepts the song search requests and gets the search keyword. What happens after that can be customized, I just happened to start with Youtube since besides Spotify that’s what I use for songs.

I was thinking of adding some kind of variable to the search, so that if you search for example “y! acdc” in Audioshield, the search goes to Youtube, or if you do “g! acdc” the search is done in Google Play etc. Of course whatever service is used has to let the user download the content, not just stream it to you.

Hey, I know it’s like 2 weeks late, but Google Play Music lets you download songs that you own as MP3’s if you’re using Chrome. I don’t know if there is an API for that or not, and I don’t know how it works with the streaming service- but it’s there for, say, music that you buy outright.

Yeah I figured that out.

But now whenever I go to play a song (searching works fine), the server crashes. I’ll get back with you with what exactly it says.

Thank you very much.

Looks like you don’t have the actual ffmpeg conversion program installed. I was under the impression that npm would install that as well, but I guess you need to download it manually.

Depending on your Windows, download either 32-bit static or 64-bit static ffmpeg from this page:
https://ffmpeg.zeranoe.com/builds/

Inside the zip file you should find a bin folder, and inside that a ffmpeg.exe -file. Easiest way to install it is just to drop the exe to your system32 folder, which is inside your Windows folder. You can verify the installation by opening a command prompt and typing ffmpeg.

It might be that you need an additional mp3-codec, but lets try this first and see if the error changes or disappears.