Closed fabricobjects2020 closed 5 years ago
As clearly seen from the log youtube-dl passes https URL to external downloader. Everything that happens later is up to external downloader.
[RESOLVED]:
I uninstalled aria2c via yum then git cloned aria2 from github repository then recompiled with following options: $ cd /tmp $ git clone [paste aria2 git URL here] $ cd aria2 $ sudo autoreconf -iv $ sudo ./configure --without-gnutls --with-openssl $ sudo make -j 4 $ cd src $ cp ./aria2c /usr/bin
Apparently, there is a problem with aria2c and gnuTLS. You have to recompile aria2c to disable gnuTLS and enable OpenSSL.
[ NOTE: ] IF using Fedora, Centos, or RHEL you have to yum install the following dependencies:
$ sudo yum install gcc gcc-c++ kernel-ml-devel libgcrypt-devel libxml2-devel openssl-devel gettext-devel cppunit autoconf automake libtool nasm
Checklist
Verbose log
Description
Trying to download video from youtube using aria2c and axel. I found that both external downloaders are redirecting https to http - just started today. Aria2c did not tell me what was wrong (see above output) but here is the output from axel:
[devops23@devops-wks-01 Videos]$ youtube-dl -f bestvideo+bestaudio --external-downloader axel --external-downloader-args "-n 16" https://www.youtube.com/watch?v=UY3mT-jKW6c [youtube] UY3mT-jKW6c: Downloading webpage [youtube] UY3mT-jKW6c: Downloading video info webpage WARNING: Requested formats are incompatible for merge and will be merged into mkv. [download] Destination: TWICE TV 'FANCY' EP.01-UY3mT-jKW6c.f137.mp4 Initializing download: https://r5---sn-ab5szn7l.googlevideo.com/videoplayback?id=o-AL3RgL8yh5Oc0MXpMz6IppstrzS83yM175p-xesl_V2i&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&itag=137&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-ab5szn7l%2Csn-p5qlsnsd&ms=au%2Conr&mv=m&pl=21&ei=f8HHXPHxI4ne8wTz1qeQDw&initcwndbps=633750&mime=video%2Fmp4&gir=yes&clen=254011855&dur=749.048&lmt=1556541006991783&mt=1556594977&fvip=1&keepalive=yes&c=WEB&txp=4535432&ip=209.36.88.148&ipbits=0&expire=1556616671&sparams=ip%2Cipbits%2Cexpire%2Cid%2Caitags%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&key=yt8&signature=A416D5256C1E1B92F1B73F069ECBC955CE44FA86.2613DFA242A3B34096E35F8E2BA71CFF00EB054F&ratebypass=yes Unable to connect to server r5---sn-ab5szn7l.googlevideo.com:80
As you can see from the output google video is redirecting from https to unsecure http protocol which is not allowed outbound on my network.