Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
IoanPaleru opened this issue Jan 25, 2018 · 18 comments

Comments

@IoanPaleru
Copy link

@IoanPaleru IoanPaleru commented Jan 25, 2018

  • [x ] I've verified and I assure that I'm running youtube-dl 2018.01.21
  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones
  • [x ] Bug report (encountered problems with youtube-dl)
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 " and the video would download fine, but now it doesn't for certain videos, however this video "https://www.youtube.com/watch?v=Zi_XLOBDo_Y" still downloads fine with 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
Copy link

@al1fr al1fr commented Jan 25, 2018

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

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 25, 2018

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

@IoanPaleru
Copy link
Author

@IoanPaleru IoanPaleru commented Jan 25, 2018

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
Copy link

@MhmdSalah MhmdSalah commented Jan 25, 2018

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
Copy link

@konomikitten konomikitten commented Jan 26, 2018

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
Copy link
Collaborator

@yan12125 yan12125 commented Jan 26, 2018

@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
Copy link

@MhmdSalah MhmdSalah commented Jan 26, 2018

@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
Copy link
Collaborator

@yan12125 yan12125 commented Jan 26, 2018

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

@MhmdSalah
Copy link

@MhmdSalah MhmdSalah commented Jan 26, 2018

@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
Copy link
Author

@IoanPaleru IoanPaleru commented Jan 27, 2018

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
Copy link

@4kgit 4kgit commented May 3, 2018

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
Copy link

@Hrxn Hrxn commented May 3, 2018

Use quotation marks for the URL..

@4kgit
Copy link

@4kgit 4kgit commented May 3, 2018

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
Copy link

@hipertracker hipertracker commented May 20, 2018

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
Copy link

@Vajdoch Vajdoch commented Sep 8, 2018

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
Copy link

@CofeeSap CofeeSap commented Sep 11, 2018

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
Copy link

@sebastienchouan sebastienchouan commented Oct 14, 2018

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.

@aurelien-git
Copy link

@aurelien-git aurelien-git commented Apr 30, 2020

-i does not works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.