ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.78k stars 9.98k forks source link

Youtube-dl doesn't seem to be able to download certain videos from youtube.com anymore #15417

Closed IoanPaleru closed 6 years ago

IoanPaleru commented 6 years ago
C:\Users\Computer User\Downloads>youtube-dl -v https://www.youtube.com/watch?v=E
uFfmnu34rs
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=EuFfmnu34rs']

[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.01.21
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: avconv 11.3, avprobe 11.3, ffmpeg N-83657-g7e4f32f, ffprob
e N-83657-g7e4f32f
[debug] Proxy map: {}
[youtube] EuFfmnu34rs: Downloading webpage
[youtube] EuFfmnu34rs: Downloading video info webpage
ERROR: EuFfmnu34rs: YouTube said: Invalid parameters.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\bu
ild\youtube_dl\YoutubeDL.py", line 784, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\bu
ild\youtube_dl\extractor\common.py", line 438, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\bu
ild\youtube_dl\extractor\youtube.py", line 1609, in _real_extract
youtube_dl.utils.ExtractorError: EuFfmnu34rs: YouTube said: Invalid parameters.
...
<end of log>

Hi. Youtube-dl is an excellent program, it can usually download videos from youtube and other sites quickly and easily in many different formats, and has lots of customization options, however lately it seems that it isn't downloading certain videos from youtube like this one "https://www.youtube.com/watch?v=EuFfmnu34rs", for example.

Also, something that may be useful for troubleshooting and related to this issue with youtube-dl, having to do with a change on youtube's website, not with youtube-dl itself, is that it seems that certain online youtube video downloader websites like these ones "get-video.online", "getvidnow.com", yoodownload.com" also aren't able to download the link to the youtube video above, even though they used to be able to, while these ones "clipconverter.cc", "convert2mp3.net/en", "youtubemultidownloader.com" are. So maybe youtube has changed something on their website that's making youtube-dl unable to download certain videos? It used to be that you could just type "youtube-dl

I'd really appreciate some more information on this, and to know if anyone else is experiencing this, as well as to know if there's anything that can be done to fix it. If you need any other information, please let me know. Thanks. Have a good day.

al1fr commented 6 years ago

youtube-dl.exe "https://www.youtube.com/watch?v=EuFfmnu34rs" works for me

yan12125 commented 6 years ago

Could you check that you can watch this video in browsers without proxies/VPNs/...? "Invalid parameters" often indicates a video is unavailable. (#15284)

IoanPaleru commented 6 years ago

Yes this video "https://www.youtube.com/watch?v=EuFfmnu34rs" does seem to be region blocked, however even other videos that played normally in my browser without a vpn or proxy weren't able to be downloaded by youtube-dl recently, but now youtube-dl seems to be able to download them properly.

By the way, when trying to download youtube videos that are region blocked to the US, if you're in another country can youtube-dl download them? Going to us.youtube.com doesn't work, because it says "Server not found", and someone else said that you can use --proxy, and put in a proxy address that can access the video, but what does that mean, how do you do that, where can you find a proxy address like that?

Youtube-dl is an excellent program, and if I find any other videos that don't download properly, I'll let you know. Thanks. Have a good day.

MhmdSalah commented 6 years ago

Hello! i ran into this problem and i am interested in a solution. my web app is an api that takes a youtube url and returns extracted download links (no video downloaded to servers, return direct download links from youtube). e.g.

youtube-dl -g https://www.youtube.com/watch?v=iOe6dI2JhgU

the problem is, youtube-dl returns download urls that are not working (getting http response forbidden), but the urls look normal to me

is there a way to detect that the video is protected so my webapp does bot return broken download urls?

konomikitten commented 6 years ago

I am getting this issue too.

Seems YouTube says the video is unavailable when I visit the video link, please disregard this post.

$ youtube-dl -v 'https://www.youtube.com/watch?v=5K3nZ9YNDm8'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=5K3nZ9YNDm8']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.01.21
[debug] Python version 2.7.13 (CPython) - Linux-4.9.0-5-amd64-x86_64-with-debian-9.3
[debug] exe versions: ffmpeg 3.3.6, ffprobe 3.3.6, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 5K3nZ9YNDm8: Downloading webpage
[youtube] 5K3nZ9YNDm8: Downloading video info webpage
ERROR: 5K3nZ9YNDm8: YouTube said: Invalid parameters.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 784, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 438, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1609, in _real_extract
    expected=True, video_id=video_id)
ExtractorError: 5K3nZ9YNDm8: YouTube said: Invalid parameters.
yan12125 commented 6 years ago

@IoanPaleru

however even other videos that played normally in my browser without a vpn or proxy weren't able to be downloaded by youtube-dl recently, but now youtube-dl seems to be able to download them properly.

Do you mean sometimes it works and sometimes it doesn't? Could you paste some such URLs?

About proxies: there are some free proxies out there, Google it! I don't use them often. Maybe someone are kind to share which proxy is a good choice.

@MhmdSalah: that's a different issue. YouTube links generated on one machine works for that machine only. Check out https://github.com/rg3/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-web-browser

MhmdSalah commented 6 years ago

@yan12125: Correct! i just tried and you are right, i was able to download the video to server but links don't work from different ip. What is the way to detect such protected video and stop api from returning links to client?

here is a metadata dump for a protected video http://api.inka.ps/meta?url=https://www.youtube.com/watch?v=iOe6dI2JhgU

and here is one for a normal video http://api.inka.ps/meta?url=https://www.youtube.com/watch?v=vOJFxkTAsHo

yan12125 commented 6 years ago

@MhmdSalah: Some people reported that URLs starting with "https://redirector.googlevideo.com" can work around IP restrictions. See #11357.

MhmdSalah commented 6 years ago

@yan12125: Thank you, but it does not seem to work anymore. seems like i have to check on client side for response code. if anybody has a fix it would be appreciated.

IoanPaleru commented 6 years ago

Yan12125 said:

"Do you mean sometimes it works and sometimes it doesn't? Could you paste some such URLs?"

Yan12125,

Thanks for your response. I meant that a few days ago, it seemed that youtube-dl wasn't able to download any videos from youtube at all, even ones that weren't region blocked, but now it seems to be able to download all those videos normally. If I find any other videos that youtube-dl can't download, I'll let you know, but at the moment, everything seems to be working normally with youtube-dl. I hope that clarifies everything, and please keep up the great work with youtube-dl, because it's a very good program. Have a good day.

4kgit commented 6 years ago

I am trying to download the view https://www.youtube.com/watch?v=YA-FeR4sHqQ

but it seems youtube-dl does not like - character in the link.

youtube-dl -F https://www.youtube.com/watch?v=YA-FeR4sHqQ [youtube] YA-FeR4sHqQ: Downloading webpage [youtube] YA-FeR4sHqQ: Downloading video info webpage ERROR: YA-FeR4sHqQ: YouTube said: This video is not available.

Hrxn commented 6 years ago

Use quotation marks for the URL..

4kgit commented 6 years ago

Tried with quotation youtube-dl -F "https://www.youtube.com/watch?v=YA-FeR4sHqQ"

Same result its actually reading the webpage but not downloading...

hipertracker commented 6 years ago

I cannot download this video

youtube-dl -F https://youtu.be/4phYuoi2NHY

[youtube] 4phYuoi2NHY: Downloading webpage
[youtube] 4phYuoi2NHY: Downloading embed webpage
[youtube] 4phYuoi2NHY: Refetching age-gated info webpage
[youtube] 4phYuoi2NHY: Extracting video information
ERROR: This video can't be played here, but you can still watch it on YouTube. Watch on YouTube
Vajdoch commented 6 years ago

I have same problem using youtube_dl by my discord bot. It can play audio from some videos (https://www.youtube.com/watch?v=nlcKDsq-C4k) but form some can not (https://www.youtube.com/watch?v=O4irXQhgMqg). When i tried to download them by using youtube-dl -v URL the results were same. Before 7th of September 2018 i could play everything. I think is due region block or same regulations.

CofeeSap commented 6 years ago

I almost completely downloaded a 20-part tv series except for 4 episodes:

  1. https://www.youtube.com/watch?v=cF5XBiuQvJI&t=367s
  2. https://www.youtube.com/watch?v=ioy4Jnim5uw
  3. https://www.youtube.com/watch?v=NTVhFvcRRbw
  4. https://www.youtube.com/watch?v=vj2imd-bAsY&t=1s

Notice 1 and 4 have extra characters. Removing them in the command has the same error, and anyway YTDL removes them if included.

If my region is blocked why only those parts and not all?

Debug:

08:15-root:~# youtube-dl -v --call-home https://www.youtube.com/watch?v=cF5XBiuQvJI&t=367s [1] 12230 08:15-root:~# [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-v', u'--call-home', u'https://www.youtube.com/watch?v=cF5XBiuQvJI'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2018.09.10 [debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-1018-gcp-x86_64-with-Ubuntu-18.04-bionic [debug] exe versions: none [debug] Proxy map: {} [debug] Public IP address: xx.xx.xx.xx [youtube] cF5XBiuQvJI: Downloading webpage [youtube] cF5XBiuQvJI: Downloading video info webpage ERROR: This video is not available. Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info ie_result = ie.extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 502, in extract ie_result = self._real_extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1888, in _real_extract raise ExtractorError(error_message, expected=True) ExtractorError: This video is not available.

sebastienchouan commented 5 years ago

You can use the option -i : -i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist

it works for me.

roastercode commented 4 years ago

-i does not works for me