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

encrypted youtube video fail to download #2922

Closed
sumofsum opened this issue May 15, 2014 · 4 comments
Closed

encrypted youtube video fail to download #2922

sumofsum opened this issue May 15, 2014 · 4 comments

Comments

@sumofsum
Copy link

@sumofsum sumofsum commented May 15, 2014

./youtube-dl AAbokV76tkU --verbose

Some video is start download fail around 3 days ago like the above example. It seems happen on encrypted signature's video. Is the encryption method changed from youtube? Attached below is the output of the above command.

/Mine/new/youtube-dl-master $ ./youtube-dl AAbokV76tkU --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['AAbokV76tkU', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.05.13
[debug] Python version 2.7.3 - Darwin-13.0.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] AAbokV76tkU: Downloading webpage
[youtube] AAbokV76tkU: Downloading video info webpage
[youtube] AAbokV76tkU: Extracting video information
[youtube] AAbokV76tkU: Encrypted signatures detected.
[youtube] encrypted signature length 86 (40.45), itag 22, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 43, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 18, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 5, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 36, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 17, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 137, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 248, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 136, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 247, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 135, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 244, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 245, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 246, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 134, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 243, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 133, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 242, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 160, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 140, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 83 (42.40), itag 171, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 137, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 248, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 136, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 247, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 135, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 244, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 245, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 246, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 134, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 243, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 133, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 242, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 160, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 140, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 171, html5 player en_US-vflzEDYyE
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1009, in process_info
success = dl(filename, info_dict)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 985, in dl
return fd.download(name, info)
File "./youtube-dl/youtube_dl/downloader/common.py", line 291, in download
return self.real_download(filename, info_dict)
File "./youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download
data = self.ydl.urlopen(request)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1214, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 444, in error
return self._call_chain(_args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(_args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

Thanks

@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented May 15, 2014

Seems to work OK here...
The 403 Forbidden error tell me you might want to try again later...network issue or other disturbance in the force?

C:\Transmogrifier>youtube-dl.py -v AAbokV76tkU
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'AAbokV76tkU']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.05.13
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] AAbokV76tkU: Downloading webpage
[youtube] AAbokV76tkU: Downloading video info webpage
[youtube] AAbokV76tkU: Extracting video information
[youtube] AAbokV76tkU: Encrypted signatures detected.
[youtube] encrypted signature length 86 (40.45), itag 22, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 43, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 18, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 5, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 36, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 17, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 137, html5 player en_US-vlzEDYyE
[youtube] AAbokV76tkU: Downloading js player vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 248, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 136, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 82 (40.41), itag 247, html5 player en_US-vflzEDYyE
[youtube] AAbokV76tkU: Downloading js player vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 135, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 244, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 245, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 246, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 134, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 243, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 133, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 242, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 160, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 140, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 84 (42.41), itag 171, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 137, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 248, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 136, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 247, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 135, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 244, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 245, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 246, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 134, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 243, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 133, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 242, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 160, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 140, html5 player en_US-vflzEDYyE
[youtube] encrypted signature length 86 (40.45), itag 171, html5 player en_US-vflzEDYyE
[download] Destination: BIGBANG - FANTASTIC BABY M_V-AAbokV76tkU.mp4
[download] 100% of 88.25MiB in 04:07

@sumofsum
Copy link
Author

@sumofsum sumofsum commented May 16, 2014

Thanks for your testing! It works again now. I didn't do any changes. Also I found some strange area to share, let's me show you the whole story.

on 12-May:
I start studying the code at home and doing testing on different videos, all works fine.
But suddenly I cannot download a video (id: AAbokV76tkU), after some test, I cannot download is a part of videos. Maybe the similar part is they are using encrypted signature. My first thought is youtube blocked me coz I have experienced before when many traffic doing.. I tried get the video url by -g option. pasting in chrome will no respond and just a white empty screen

on 14-May:
I still cannot download those videos. I tried in company and got the same result.
I go download FoxTube in office, the most updated version, they can play all videos.
I backed home using my FoxTube that not the most recent version. It's same as my situation, also fail to download some videos. (So I think the updated FoxTube fixed the problem)
I tried iphone version Foxtube (most update) version can play all the videos.
Also I read the following link and think shuts down public RSS feed of user subscription maybe have relationship:
http://arstechnica.com/gadgets/2014/05/youtube-shuts-down-public-rss-feeds-of-user-subscriptions/
Therefore I have another idea, youtube updated signature encryption again?

on 15-May:
RingoTheDog reply he is able to download. At this time I still cannot.

Today (16-May):
I tried this morning still cannot download. After 1 hour. Its work normally again at home and office.

Thats the whole story. So I think my 'high' traffic testing may be triggered some blocking on me for few days (12 to 16-May). What I feel strange is why I cannot download in two different network. But another app or another person can do it? I really messed up with this..

@PureL1F3
Copy link

@PureL1F3 PureL1F3 commented May 29, 2014

For youtube downloading get behind an https proxy. Some sources are here. Pick one that is HTTPS and I usually go for US ones as that gives you fewer 'this video is not allowed in your country' issues: https://www.hidemyass.com/proxy-list/

If you are running from the command line then add the proxy param to your command like this:

$ youtube-dl --proxy https://66.35.68.145:7808 https://www.youtube.com/watch?v=4kpn3V_Cnhg

If you are running inside python code, add the proxy setting to your downloader for example:

ydlsettings = {'logger' : logger, 'skip_download' : True, 'age_limit' : 30, 'proxy' : 'https://204.228.129.46:8080'}
ydl = youtube_dl.YoutubeDL(ydlsettings)
ydl.add_default_info_extractors()
url = 'https://www.youtube.com/watch?v=4kpn3V_Cnhg'
result = ydl.extract_info(url, download=False)

I had some issues with other sites like vimeo, liveleak (I would see some SSL related errors) when I added the proxy but for youtube it works great.

@pirate486743186
Copy link

@pirate486743186 pirate486743186 commented Nov 3, 2018

shouldn't this be closed?

@remitamine remitamine closed this Nov 3, 2018
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
5 participants
You can’t perform that action at this time.