You are not logged in.

#1 2021-06-23 02:44:47

ian-melo
Member
Registered: 2021-06-23
Posts: 9

Youtube video does not download

Excuse me for bringing it to Newbie Corner, I am new to the forums and am not sure which one should suit better for.

I unsuccessfully tried to open and load a Youtube video on the Firefox today, just after updating my computer and being a couple weeks inactive. The Desktop Environment is Gnome, yet I'm not sure if it has any influence over that issue. Same thing would go for other browsers, like Vivaldi and Chromium. When I tried to use youtube-dl to download the video, I faced the same issue:

$ youtube-dl -F https://www.youtube.com/watch?v=WSRnYK1Jf5s
[youtube] WSRnYK1Jf5s: Downloading webpage
[info] Available formats for WSRnYK1Jf5s:
format code  extension  resolution note
...
18           mp4        640x360    360p  399k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz), 13.53MiB
22           mp4        1280x720   720p  502k , avc1.64001F, 30fps, mp4a.40.2 (44100Hz) (best)

$ youtube-dl -f 22 https://www.youtube.com/watch?v=WSRnYK1Jf5s
[youtube] WSRnYK1Jf5s: Downloading webpage
ERROR: unable to download video data: <urlopen error [Errno -3] Temporary failure in name resolution>

Although Youtube doesn't work, Vimeo and other video platforms would work normally. How to solve this problem?
Thanks in advance.

Offline

#2 2021-06-23 06:29:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,441

Re: Youtube video does not download

pacman -Qi youtube-dl

Offline

#3 2021-06-23 08:03:46

ian-melo
Member
Registered: 2021-06-23
Posts: 9

Re: Youtube video does not download

$ pacman -Qi youtube-dl
Nome                 : youtube-dl
Versão               : 2021.06.06-1
Descrição            : A command-line program to download videos from YouTube.com and a few more sites
Arquitetura          : any
URL                  : https://ytdl-org.github.io/youtube-dl/
Licenças             : custom
Grupos               : Nenhum
Provê                : Nenhum
Depende de           : python
Depend. opcionais    : ffmpeg: for video post-processing [instalado]
                       rtmpdump: for rtmp streams support [instalado]
                       atomicparsley: for embedding thumbnails into m4a files
                       python-pycryptodome: for hlsnative downloader
Necessário para      : Nenhum
Opcional para        : Nenhum
Conflita com         : Nenhum
Substitui            : Nenhum
Tamanho instalado    : 13,26 MiB
Empacotador          : Jaroslav Lichtblau <svetlemodry@archlinux.org>
Data da compilação   : sáb 05 jun 2021 16:05:13
Data de instalação   : dom 06 jun 2021 20:53:36
Motivo da instalação : Instalado explicitamente
Script de instalação : Não
Validado por         : Assinatura

Same version from repository:

$ pacman -Si youtube-dl
Repositório          : community
Nome                 : youtube-dl
Versão               : 2021.06.06-1
Descrição            : A command-line program to download videos from YouTube.com and a few more sites
Arquitetura          : any
URL                  : https://ytdl-org.github.io/youtube-dl/
Licenças             : custom
Grupos               : Nenhum
Provê                : Nenhum
Depende de           : python
Depend. opcionais    : ffmpeg: for video post-processing
                       rtmpdump: for rtmp streams support
                       atomicparsley: for embedding thumbnails into m4a files
                       python-pycryptodome: for hlsnative downloader
Conflita com         : Nenhum
Substitui            : Nenhum
Tamanho do download  : 2,29 MiB
Tamanho instalado    : 13,26 MiB
Empacotador          : Jaroslav Lichtblau <svetlemodry@archlinux.org>
Data da compilação   : sáb 05 jun 2021 16:05:13
Validado por         : Soma MD5  Soma SHA-256  Assinatura

Offline

#4 2021-06-23 09:29:58

ian-melo
Member
Registered: 2021-06-23
Posts: 9

Re: Youtube video does not download

I forgot to mention that I managed to play a Youtube video on Firefox for a short time while removing the HDMI cable from my laptop. After rebooting, it wouldn't work any longer.

Offline

#5 2021-06-23 13:36:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,441

Re: Youtube video does not download

ping googlevideo.com

If that works, but the download doesn't, please post the output of

youtube-dl -v -f 22 'https://www.youtube.com/watch?v=WSRnYK1Jf5s'

Offline

#6 2021-06-23 15:19:50

Flemur
Member
Registered: 2012-05-24
Posts: 72

Re: Youtube video does not download

ian-melo wrote:

Excuse me for bringing it to Newbie Corner, I am new to the forums and am not sure which one should suit better for.

$ youtube-dl -f 22 https://www.youtube.com/watch?v=WSRnYK1Jf5s
[youtube] WSRnYK1Jf5s: Downloading webpage
ERROR: unable to download video data: <urlopen error [Errno -3] Temporary failure in name resolution>

That worked OK for me (got a 17,824,941 byte file); note that the message is: "Temporary failure in name resolution"


"If you do not change direction, you may end up where you are heading." -- L.T.

Offline

#7 2021-06-24 05:08:14

ian-melo
Member
Registered: 2021-06-23
Posts: 9

Re: Youtube video does not download

seth wrote:
ping googlevideo.com

If that works, but the download doesn't, please post the output of

That didn't work due to "Temporary failure in name resolution":

$ ping googlevideo.com
ping: googlevideo.com: Falha temporário na resolução de nome

My /etc/resolv.conf file is set to resolve 1.1.1.1:

$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 2804:14d:1:0:181:213:132:2
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 2804:14d:1:0:181:213:132:3

And pinging google.com worked just fine:

$ ping -c 4 google.com
PING google.com(2800:3f0:4001:822::200e (2800:3f0:4001:822::200e)) 56 bytes de dados
64 bytes de 2800:3f0:4001:822::200e (2800:3f0:4001:822::200e): icmp_seq=1 ttl=114 tempo=18.1 ms
64 bytes de 2800:3f0:4001:822::200e (2800:3f0:4001:822::200e): icmp_seq=2 ttl=114 tempo=15.5 ms
64 bytes de 2800:3f0:4001:822::200e (2800:3f0:4001:822::200e): icmp_seq=3 ttl=114 tempo=10.6 ms
64 bytes de 2800:3f0:4001:822::200e (2800:3f0:4001:822::200e): icmp_seq=4 ttl=114 tempo=12.7 ms

--- google.com estatísticas de ping ---
4 pacotes transmitidos, 4 recebidos, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 10.602/14.209/18.085/2.829 ms

Offline

#8 2021-06-24 05:23:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,441

Re: Youtube video does not download

dig @1.1.1.1 googlevideo.com
systemctl restart systemd-resolved

Offline

#9 2021-06-24 06:01:12

ian-melo
Member
Registered: 2021-06-23
Posts: 9

Re: Youtube video does not download

$ dig @1.1.1.1 googlevideo.com
;; Truncated, retrying in TCP mode.
;; Connection to 1.1.1.1#53(1.1.1.1) for googlevideo.com failed: timed out.
;; Connection to 1.1.1.1#53(1.1.1.1) for googlevideo.com failed: timed out.

; <<>> DiG 9.16.18 <<>> @1.1.1.1 googlevideo.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

;; Connection to 1.1.1.1#53(1.1.1.1) for googlevideo.com failed: timed out.

8.8.8.8 seems to work however:

$ dig @8.8.8.8 googlevideo.com

; <<>> DiG 9.16.18 <<>> @8.8.8.8 googlevideo.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45736
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;googlevideo.com.		IN	A

;; ANSWER SECTION:
googlevideo.com.	299	IN	A	172.217.29.100

;; Query time: 76 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: qui jun 24 02:35:58 -03 2021
;; MSG SIZE  rcvd: 60

SOLVED
It turns out 1.1.1.1 doesn't seem to work fine for this domain. Instead I reset the router DNS config to default settings and now it works:

$ ping -c 4 googlevideo.com
PING googlevideo.com(2800:3f0:4004:808::2004 (2800:3f0:4004:808::2004)) 56 bytes de dados
64 bytes de 2800:3f0:4004:808::2004 (2800:3f0:4004:808::2004): icmp_seq=1 ttl=114 tempo=23.0 ms
64 bytes de 2800:3f0:4004:808::2004 (2800:3f0:4004:808::2004): icmp_seq=2 ttl=114 tempo=20.8 ms
64 bytes de 2800:3f0:4004:808::2004 (2800:3f0:4004:808::2004): icmp_seq=3 ttl=114 tempo=17.2 ms
64 bytes de 2800:3f0:4004:808::2004: icmp_seq=4 ttl=114 tempo=18.4 ms

--- googlevideo.com estatísticas de ping ---
4 pacotes transmitidos, 4 recebidos, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 17.225/19.862/23.010/2.226 ms

Thank you very much.

Offline

#10 2021-06-24 06:03:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,441

Re: Youtube video does not download

It would rather seem that 1.1.1.1 is not reachable/blocked?

ping 1.1.1.1

Offline

#11 2021-06-24 06:10:46

ian-melo
Member
Registered: 2021-06-23
Posts: 9

Re: Youtube video does not download

No, 1.1.1.1 is reachable and worked out for most of the domains:

$ ping -c 4 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes de dados.
64 bytes de 1.1.1.1: icmp_seq=1 ttl=54 tempo=16.3 ms
64 bytes de 1.1.1.1: icmp_seq=2 ttl=54 tempo=12.8 ms
64 bytes de 1.1.1.1: icmp_seq=3 ttl=54 tempo=11.2 ms
64 bytes de 1.1.1.1: icmp_seq=4 ttl=54 tempo=9.99 ms

--- 1.1.1.1 estatísticas de ping ---
4 pacotes transmitidos, 4 recebidos, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 9.994/12.552/16.270/2.359 ms
$ dig @1.1.1.1 google.com

; <<>> DiG 9.16.18 <<>> @1.1.1.1 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27496
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		211	IN	A	142.250.218.174

;; Query time: 16 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: qui jun 24 03:07:55 -03 2021
;; MSG SIZE  rcvd: 55

Offline

Board footer

Powered by FluxBB