Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ERROR: unable to download video data: <urlopen error [Errno -2] Name or service not known> on Centos #3205
Comments
|
I don't understand what is going on, yesterday again youtube-dl started working and I was happy to download videos, but again today I am not able to download videos, though I am able to view videos through browser, which was not the case earlier. |
|
The problem solved automatically, really it was a problem with either DNS or some google internal error, which even prevented the video's from being played on. |
|
Something similar happened to me today.
Finally, after a few hours, I tried again and now I download everything - immediately without any problem.
|
youtube-dl --verbose -o '%(uploader)s/%(playlist)s/%(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLfdtiltiRHWE-DJO5ma4Vuz_HPsMO8UZq
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-o', '%(uploader)s/%(playlist)s/%(title)s.%(ext)s', 'https://www.youtube.com/playlist?list=PLfdtiltiRHWE-DJO5ma4Vuz_HPsMO8UZq']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.26
[debug] Python version 2.6.6 - Linux-2.6.32-431.el6.x86_64-x86_64-with-centos-6.5-Final
[debug] Proxy map: {}
[youtube:playlist] PLfdtiltiRHWE-DJO5ma4Vuz_HPsMO8UZq: Downloading webpage
[download] Downloading playlist: From GitHub to Server
[youtube:playlist] playlist From GitHub to Server: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[youtube] Setting language
[youtube] eQpIomFi2uM: Downloading webpage
[youtube] eQpIomFi2uM: Downloading video info webpage
[youtube] eQpIomFi2uM: Extracting video information
ERROR: unable to download video data: <urlopen error [Errno -2] Name or service not known>
Traceback (most recent call last):
File "/home/nilesh/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1020, in process_info
success = dl(filename, info_dict)
File "/home/nilesh/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 996, in dl
return fd.download(name, info)
File "/home/nilesh/bin/youtube-dl/youtube_dl/downloader/common.py", line 291, in download
return self.real_download(filename, info_dict)
File "/home/nilesh/bin/youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download
data = self.ydl.urlopen(request)
File "/home/nilesh/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1225, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/home/nilesh/bin/youtube-dl/youtube_dl/utils.py", line 591, in https_open
return self.do_open(HTTPSConnectionV3, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)
URLError: <urlopen error [Errno -2] Name or service not known>
Sir, I got error message saying "ERROR: unable to download video data: <urlopen error [Errno -2] Name or service not known>" when I am trying to download videos from youtube, and the error is consistant on my Centos 6.5 PC
Also, I am not able to play the video from this PC, where as youtube is playing videos on another Windows PC, so pl pardon and guide me if their is any problem with my Centos PC.