spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.46k stars 1.6k forks source link

Unable to get audio stream #1367

Closed paweleck closed 3 years ago

paweleck commented 3 years ago

System OS

Windows

Python Version

3.9 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v3.7.2

Expected Behavior vs Actual Behavior

I was trying to download Spotify list. 14 songs out of 36 didnt get downloaded.

Steps to reproduce

  1. cmd as administarator
  2. spotdl --ignore-ffmpeg-version

Traceback

Unable to get audio stream for "Toca" by "Carnage" from video "https://www.youtube.com/watch?v=C4DV53fFyCU"
Unable to get audio stream for "Tsunami - Original Mix" by "DVBBS" from video "https://www.youtube.com/watch?v=ncq4eiFG9C0"
Unable to get audio stream for "Muzik" by "Knoc-Turn'al" from video "https://www.youtube.com/watch?v=CbGGVFyXvhk"
Unable to get audio stream for "Open Your Eyes" by "Guano Apes" from video "https://www.youtube.com/watch?v=7KyfLXnKe20"
Unable to get audio stream for "Bang Bang" by "Hollywood Undead" from video "https://www.youtube.com/watch?v=PgIiNdYRYME"
Unable to get audio stream for "Satisfy" by "NERO" from video "https://www.youtube.com/watch?v=HBuMAaWK0iw"
Unable to get audio stream for "Lies" by "CHVRCHES" from video "https://www.youtube.com/watch?v=UmunvW1UlU8"
Unable to get audio stream for "We Are Rebels" by "Alice In Videoland" from video "https://www.youtube.com/watch?v=WqJ9_VFkGe0"
Unable to get audio stream for "Hold That Sucker Down - Radio Edit" by "OT Quartet" from video "https://www.youtube.com/watch?v=3ZxS7MTiw4c"
Unable to get audio stream for "96 Quite Bitter Beings" by "CKY" from video "https://www.youtube.com/watch?v=He8_4KWFMi8"
Unable to get audio stream for "Celebrity Skin" by "Hole" from video "https://www.youtube.com/watch?v=Bv9d27d1Byg"
Unable to get audio stream for "Everything Black (feat. Mike Taylor)" by "Unlike Pluto" from video "https://www.youtube.com/watch?v=tZKe908QmIg"
Unable to get audio stream for "Days Go By" by "Dirty Vegas" from video "https://www.youtube.com/watch?v=azVokn2PRKc"
Unable to get audio stream for "Blood Brothers" by "Papa Roach" from video "https://www.youtube.com/watch?v=b-Hm9q_WwWU"
Unable to get audio stream for "Immigrant Song - Remaster" by "Led Zeppelin" from video "https://www.youtube.com/watch?v=5eHkjPCGXKQ"
Unable to get audio stream for "Hole in Your Heart" by "Royal Blood" from video "https://www.youtube.com/watch?v=Ep5ELC1NM50"
Unable to get audio stream for "Thunderstruck" by "AC/DC" from video "https://www.youtube.com/watch?v=lhg9bYNLvOg"

Other details

Windows 10 Home 64 Youtube Music works in my country, Poland. The second try ended with the same resault. The listed links work fine when I open them in Chrome.

akimich11 commented 3 years ago

Same behavior. Ubuntu, python 3.8.10, Belarus. But after sudo apt update && sudo apt upgrade and system reboot the problem has gone, now everything works well.

Silverarmor commented 3 years ago

@paweleck don't run spotDL in administrator and try again

paweleck commented 3 years ago

@Silverarmor still the same problem

Silverarmor commented 3 years ago

pip install -U --force spotdl pytube ytmusicapi youtube-dl spotipy have you reinstalled as per FAQ?

xnetcat commented 3 years ago

also try clearing youtube-dl cache youtube-dl --rm-cache-dir

paweleck commented 3 years ago

@Silverarmor the command didnt help. What FAQ?

@xnetcat Didnt help.

It worked fine on another computer however.

toksikk commented 3 years ago

So I ran into this problem on OSX myself. So my problem was originating from a faulty openssl installation through homebrew. I simply ran brew reinstall openssl@1.1 and this regenerated the CA certificate bundle for me again.

==> Regenerating CA certificate bundle from keychain, this may take a while...

Hopes this helps for people who encounter this on OSX

Felix83000 commented 3 years ago

Same issue on OSX, no solution for now... I tried all on this issue.

All my downloads are "Unable to get audio stream"

I also did the "Bug & Error Troubleshooting" guide from the Discord room.

Silverarmor commented 3 years ago

@Felix83000 we had this issue on bigsur (archived thread on discord), pip install --no-cache-dir --force --upgrade youtube-dl resolved it for them - can you try

Felix83000 commented 3 years ago

pip install --no-cache-dir --force --upgrade youtube-dl

Hello @Silverarmor, I autoremove spotdl and then tried what you proposed, it did not work...

Capture d’écran 2021-08-14 à 10 30 25

Is there any logs to look at?

lucaswalden commented 3 years ago

I have the same Bug and tried all of the above. On OSX.

s1as3r commented 3 years ago

Could you try downloading the audio manually using youtube-dl

youtube-dl -x <YT_URL>

paweleck commented 3 years ago

youtube-dl -x https://www.youtube.com/watch?v=lhg9bYNLvOg [youtube] lhg9bYNLvOg: Downloading webpage [download] Destination: Thunderstruck-lhg9bYNLvOg.m4a [download] 100% of 4.52MiB in 01:38 [ffmpeg] Correcting container in "Thunderstruck-lhg9bYNLvOg.m4a" ERROR: "debug"

@s1as3r Some kind of error

xnetcat commented 3 years ago

@paweleck What's your youtube-dl version? youtube-dl --version

paweleck commented 3 years ago

@xnetcat 2021.06.06

xnetcat commented 3 years ago

How about ffmpeg? ffmpeg -version

also can you try running this youtube-dl -f bestaudio https://www.youtube.com/watch?v=Z1tF3DdhUNk

paweleck commented 3 years ago

ffmpeg -version ffmpeg version N-50911-g9efcfbe built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 19.100 / 52. 19.100 libavcodec 55. 0.100 / 55. 0.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 54. 4.100 / 54. 4.100 libavfilter 3. 45.103 / 3. 45.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100

Downloaded from this page: https://www.gyan.dev/ffmpeg/builds/

youtube-dl -f bestaudio https://www.youtube.com/watch?v=Z1tF3DdhUNk [youtube] Z1tF3DdhUNk: Downloading webpage [download] Destination: Hodak_2K - Omerta (feat. Avi)-Z1tF3DdhUNk.webm [download] 100% of 3.93MiB in 00:00

Works fine.

xnetcat commented 3 years ago

this ffmpeg is from 2013 💀, remove it and follow this guide

https://windowsloop.com/install-ffmpeg-windows-10/

paweleck commented 3 years ago

where ffmpeg C:\Program Files\ImageMagick-6.9.2-Q16\ffmpeg.exe C:\ffmpeg\bin\ffmpeg.exe

Ive deleted the ImageMagick thing and now everything works fine :D Thx