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
132.38k stars 10.04k forks source link

failing YouTube download #1314

Closed kylesg closed 9 months ago

kylesg commented 11 years ago

Have received the following error repeatedly with this youtube file:

2O0nbyy1VH8

"10.6% of 592.93MiB at 705.51KiB/s ETA 12:49ERROR: unable to download video"

Always fails at just over 10% and I've had it fail on 2 different linux flavors. Additionally, the file seems to play fine past 10% online with flashplayer. Multiple attempts to download were separated by about 3 days.

Could easily be something I'm doing or something corrupt on my system; but thought it prudent to notify this group in case something useful can be learned.

TOMBSTONEV2 commented 11 years ago

I was unable to replicate your issue:

root@FUSION:/home/justin# youtube-dl https://www.youtube.com/watch?v=2O0nbyy1VH8 --verbose [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['https://www.youtube.com/watch?v=2O0nbyy1VH8', '--verbose'] [debug] youtube-dl version 2013.08.23 [debug] Python version 2.7.3 - Linux-3.2.0-4-686-pae-i686-with-debian-7.1 [debug] Proxy map: {} [youtube] Setting language [youtube] 2O0nbyy1VH8: Downloading video webpage [youtube] 2O0nbyy1VH8: Downloading video info webpage [youtube] 2O0nbyy1VH8: Extracting video information [download] Destination: Object-Oriented Programming in C - Lecture 5-2O0nbyy1VH8.mp4 [download] 100.0% of 592.93MiB at 1.97MiB/s ETA 00:00

I find myself wondering if your youtube-dl is up to date, update it with youtube-dl -U. You should also run youtube-dl https://www.youtube.com/watch?v=2O0nbyy1VH8 -v and post the output here. This will display vital information about your problem.

kylesg commented 11 years ago

Thank you very much for trying to replicate. My version is up to date. I will try youtube-dl under Windows as a workaround. This machine is dual-boot. In the meantime: I had this failure with 2 different Linux flavors (ubuntu and raspberry raspbian)

Here is the error output in case anyone finds it useful. I will be happy to try additional suggestions if it is helpful for bug tracking in any way. Otherwise I will not make any further attempts under Linux with this file as I am intermediate with both linux and youtube-dl.

kyle@MyComputer:~$ youtube-dl https://www.youtube.com/watch?v=2O0nbyy1VH8 -v [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['https://www.youtube.com/watch?v=2O0nbyy1VH8', '-v'] [debug] youtube-dl version 2013.08.23 [debug] Python version 2.7.3 - Linux-3.2.0-52-generic-x86_64-with-Ubuntu-12.04-precise [debug] Proxy map: {} [youtube] Setting language [youtube] 2O0nbyy1VH8: Downloading video webpage [youtube] 2O0nbyy1VH8: Downloading video info webpage [youtube] 2O0nbyy1VH8: Extracting video information [download] Destination: Object-Oriented Programming in C - Lecture 5-2O0nbyy1VH8.mp4 [download] 10.5% of 592.93MiB at 703.91KiB/s ETA 12:51ERROR: unable to download video Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 560, in download videos = self.extract_info(url) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info return self.process_ie_result(ie_result, download=download) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 410, in process_ie_result for r in ie_result['entries'] File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 357, in process_ie_result self.process_info(ie_result) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 537, in process_info raise UnavailableVideoError(err) UnavailableVideoError: timed out

kylesg commented 11 years ago

Under Windows, Google Chrome stops the download from http://youtube-dl.org/ and displays the warning: "youtube-dl.exe appears malicious" with options to "discard, keep, learn more" Learn more is directed to Chromes phishing and malware about page: https://support.google.com/chrome/answer/99020?p=ib_download_scan&rd=1

Any ideas why google-chrome would call the download malicious?

kylesg commented 11 years ago

Never mind that last question...Google owns youtube. I'll see what firefox does out of curiousity. Thanks.

phihag commented 11 years ago

Beware the conspiracy theories; Google does not block youtube-dl's downloads. I'll try to reproduce the warning on my system; on Chromium, I don't see any. Do you see the same warning on https://yt-dl.org/ ?

Downloading https://www.youtube.com/watch?v=2O0nbyy1VH8 works fine on my system, with Linux.

phihag commented 11 years ago

All in all, this behavior sounds rather like an ISP is monkeying somehow with videos. What ISP are you using? Can you reproduce both bugs (not being able to download the video, and youtube-dl's exe) with another Internet connection?

phihag commented 11 years ago

I just queried Google's safe browsing API interactively; it is perfectly fine with http://youtube-dl.org/ as well as https://yt-dl.org/ . Are you by any chance running any local anti-virus software? Can you reproduce the downloading problem under Linux?

kylesg commented 11 years ago

Hey - Sorry for delayed reply. Thanks for very good advice and suggestions. I am running local anti-virus. Would my local virus detection interact with Chrome's built-in detection, though? I can't imagine some other malicious program trying to prevent me from downloading something. I did not try the yt-dl.org. I went through firefox just to see what would happen (not as though a different browser would change the big picture...Just did not know if firefox had similar built-in detection). I went ahead, downloaded via firefox and proceeded to complete the download of the file that had previously stopped without any problems.

kylesg commented 11 years ago

I have to get offline now, but will report back later on whether the file worked well with the windows-dl download. For some reason this file download struggled under linux for me.

kefir- commented 11 years ago

Try fetching a different quality video instead of the default "best". I've experienced errors that remind me of this when watching a video on youtube the normal way, and sometimes changing quality helped. I suspect this may have been caused by a problem on your local exit node of youtube's content distribution network. Would there be any way to test this hypothesis?

kylesg commented 11 years ago

Thank you kefir. I will remember this in the future. Great suggestions by all.

Worked fine under Windows so I used that.

netcyrax commented 11 years ago

I was able to reproduce the Google Chrome's "youtube-dl.exe appears malicious". I am using Windows 8 and this problem is not due to my local anti-virus (i have turn it off and the same message appears).

It seems that for some reason Chrome has added youtube-dl's GitHub page into their dangerous list. I can perfectly download the same file from http://youtube-dl.org/ or https://yt-dl.org/ capture

phihag commented 11 years ago

@netcyrax That looks strange, since we link to https://yt-dl.org/ . Can you reproduce this behavior with another machine / from another Internet connection? I'll try to reproduce it, but I think it's easier for us to just move everything to the SSL-secured https://yt-dl.org/