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.31k stars 10.03k forks source link

Aria2c #12194

Closed Dimsok closed 7 years ago

Dimsok commented 7 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.02.17. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

C:\Program Files\Total Commander\Plugins\exe>"C:\Program Files\Total Commander\P
lugins\exe\youtube-dl.exe" -v https://www.youtube.com/watch?v=f1xADw21Lx4 --exte
rnal-downloader aria2c
[debug] System config: []
[debug] User config: ['--sub-lang', 'el,en,ru,pt,es,it,fr,de,ja,zh-Hant', '-f',
'18', '-o', '%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=f1xADw21Lx4',
 '--external-downloader', 'aria2c']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.02.11
[debug] Python version 3.4.4 - Windows-XP-5.1.2600-SP3
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] f1xADw21Lx4: Downloading webpage
[youtube] f1xADw21Lx4: Downloading video info webpage
[youtube] f1xADw21Lx4: Extracting video information
[youtube] {22} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {43} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {18} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {36} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {17} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {137} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {248} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {136} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {247} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {135} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {244} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {134} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {243} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {133} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {242} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {160} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {278} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {140} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {171} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {249} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {250} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[youtube] {251} signature length 82.1.0, html5 player en_US-vflg9Wu9U
[debug] Invoking downloader on 'https://r2---sn-hxb54vo-304z.googlevideo.com/vid
eoplayback?mv=m&source=youtube&clen=21276920&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir
%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2
Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&ratebypass=yes&upn=iyd1s8gnfrk&
beids=%5B9452307%5D&itag=18&key=yt6&lmt=1434942982676415&ipbits=0&gcr=ru&id=o-AB
D4uRs769QOOckVMlyjQ_I31nVxTugw2iBfyd_kmSIZ&mime=video%2Fmp4&pl=23&mm=31&mn=sn-hx
b54vo-304z&ms=au&mt=1487611774&gir=yes&ip=85.26.233.234&requiressl=yes&ei=ECirWI
T0KpngYsnNMg&initcwndbps=646250&dur=310.706&expire=1487633520&signature=A36A799D
29468DA61B6132C753C211E4D843DF38.8DC89C9BB0FAEA58B4223D62FBD0501AECD8B943'
[download] Destination: Ария - Точка невозврата (Official Video).mp4
[debug] aria2c command line: aria2c -c --min-split-size 1M --max-connection-per-
server 4 --out 'Ария - Точка невозврата (Official Video).mp4.part' --header 'Use
r-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (C
hrome)' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,
*/*;q=0.8' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'A
ccept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --chec
k-certificate=true -- 'https://r2---sn-hxb54vo-304z.googlevideo.com/videoplaybac
k?mv=m&source=youtube&clen=21276920&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Ci
nitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypa
ss%2Crequiressl%2Csource%2Cupn%2Cexpire&ratebypass=yes&upn=iyd1s8gnfrk&beids=%5B
9452307%5D&itag=18&key=yt6&lmt=1434942982676415&ipbits=0&gcr=ru&id=o-ABD4uRs769Q
OOckVMlyjQ_I31nVxTugw2iBfyd_kmSIZ&mime=video%2Fmp4&pl=23&mm=31&mn=sn-hxb54vo-304
z&ms=au&mt=1487611774&gir=yes&ip=85.26.233.234&requiressl=yes&ei=ECirWIT0KpngYsn
NMg&initcwndbps=646250&dur=310.706&expire=1487633520&signature=A36A799D29468DA61
B6132C753C211E4D843DF38.8DC89C9BB0FAEA58B4223D62FBD0501AECD8B943'

02/20 21:32:04 [NOTICE] Downloading 1 item(s)
[#3b6a96 0B/0B CN:1 DL:0B]
02/20 21:32:06 [ERROR] CUID#7 - Download aborted. URI=https://r2---sn-hxb54vo-30
4z.googlevideo.com/videoplayback?mv=m&source=youtube&clen=21276920&sparams=clen%
2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm
%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&ratebypas
s=yes&upn=iyd1s8gnfrk&beids=%5B9452307%5D&itag=18&key=yt6&lmt=1434942982676415&i
pbits=0&gcr=ru&id=o-ABD4uRs769QOOckVMlyjQ_I31nVxTugw2iBfyd_kmSIZ&mime=video%2Fmp
4&pl=23&mm=31&mn=sn-hxb54vo-304z&ms=au&mt=1487611774&gir=yes&ip=85.26.233.234&re
quiressl=yes&ei=ECirWIT0KpngYsnNMg&initcwndbps=646250&dur=310.706&expire=1487633
520&signature=A36A799D29468DA61B6132C753C211E4D843DF38.8DC89C9BB0FAEA58B4223D62F
BD0501AECD8B943
Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://r2---sn-hxb54vo-304z
.googlevideo.com/videoplayback?mv=m&source=youtube&clen=21276920&sparams=clen%2C
dur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2
Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&ratebypass=
yes&upn=iyd1s8gnfrk&beids=%5B9452307%5D&itag=18&key=yt6&lmt=1434942982676415&ipb
its=0&gcr=ru&id=o-ABD4uRs769QOOckVMlyjQ_I31nVxTugw2iBfyd_kmSIZ&mime=video%2Fmp4&
pl=23&mm=31&mn=sn-hxb54vo-304z&ms=au&mt=1487611774&gir=yes&ip=85.26.233.234&requ
iressl=yes&ei=ECirWIT0KpngYsnNMg&initcwndbps=646250&dur=310.706&expire=148763352
0&signature=A36A799D29468DA61B6132C753C211E4D843DF38.8DC89C9BB0FAEA58B4223D62FBD
0501AECD8B943
  -> [SocketCore.cc:1015] errorCode=1 SSL/TLS handshake failure: unable to get l
ocal issuer certificate

02/20 21:32:06 [NOTICE] Download GID#3b6a960cb08c83cc not complete: C:/Program F
iles/Total Commander/Plugins/exe/Ария - Точка невозврата (Official Video).mp4.pa
rt

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
3b6a96|ERR |       0B/s|C:/Program Files/Total Commander/Plugins/exe/Ария - Точк
а невозврата (Official Video).mp4.part

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page
 for details.

ERROR: aria2c exited with code 1
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\__init__.py", line 452, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\__init__.py", line 442, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 1796, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 707, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 753, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 1440, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 1704, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 1646, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\downloader\common.py", line 353, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\downloader\external.py", line 44, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\downloader\common.py", line 162, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 570, in report_error
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9b6x_5wr\bu
ild\youtube_dl\YoutubeDL.py", line 532, in trouble

C:\Program Files\Total Commander\Plugins\exe>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

I'm try to download with aria2c (v.1.31.0) as external downloader, but without sucess. Found similar issue, but as i found out it doesn't work with hls, and i just try to download ordinary youtube.

dstftw commented 7 years ago

That's an aria2c/SSL issue not a youtube-dl one.