一、下载
1、到github下载最新版

下载,1.36版32位或64位包。
2、解压缩到指定目录,比如D:/bin/sria2c、下,目录下有几个文件

Aria2c.exe 是可执行文件
另外需要创建4个新文件,分别为:
Aria2.log 日志文件,空文件就行aria2.session 下载历史文件,空文件就行aria2.conf 配置文件HideRun.vbs 隐藏cmd窗口运行
创建好后如图

二、配置文件
编写以下代码,到aria2.conf文件内
dir=d:\bin\aria2\log=d:\bin\aria2\aria2.loginput-file=d:\bin\aria2\aria2.sessionsave-session=d:\bin\aria2\aria2.sessionasync-dns-server=114.114.114.114save-session-interval=60force-save=truelog-level=error# see --split optionmax-concurrent-downloads=5continue=truemax-overall-download-limit=0max-overall-upload-limit=50Kmax-upload-limit=20# Http/FTP optionsconnect-timeout=120lowest-speed-limit=10Kmax-connection-per-server=10max-file-not-found=2min-split-size=1Msplit=5check-certificate=falsehttp-no-cache=true# FTP Specific Options# BT/PT Settingbt-enable-lpd=true#bt-max-peers=55follow-torrent=trueenable-dht6=falsebt-seed-unverifiedrpc-save-upload-metadata=truebt-hash-check-seedbt-remove-unselected-filebt-request-peer-speed-limit=100Kseed-ratio=0.0# Metalink Specific Options# RPC Optionsenable-rpc=truepause=falserpc-allow-origin-all=truerpc-listen-all=truerpc-save-upload-metadata=truerpc-secure=false# Advanced Optionsdaemon=truedisable-ipv6=trueenable-mmap=truefile-allocation=falloc max-download-result=120#no-file-allocation-limit=32Mforce-sequential=trueparameterized-uri=true
必须修改的内容
dir=d:\bin\aria2\ 运行文件目录log=d:\bin\aria2\aria2.log 日志文件位置input-file=d:\bin\aria2\aria2.session 下载历史文件save-session=d:\bin\aria2\aria2.session 下载历史文件三、启动Aria2
打开HideRun.vbs,编写以下内容
CreateObject("WScript.Shell").Run "d:\bin\aria2\aria2c.exe --conf-path=aria2.conf --async-dns=false",0
四、Aria2图形界面
安装chrome的插件,插件名称是camtd,是一款多线程下载管理器扩展,从 Chrome Webstore 获取:
从 Github releases 获取 crx 文件:
https://github.com/jae-jae/Camtd/releases
下载后直接安装
五、youtube-dl使用aria2加速
youtube-dl是专门用来下载youtube视频的开源软件,功能非常强大,没有图形界面,全是命令行。
说明帮助文件有几页,正常下载是单线程工作,一般网速是4-50k左右,速度非常慢,一个1080视频,1g多文件,需要下载几个小时。使用aria2加速下载,大缩短下载时间。
1、查询视频音频各种编码格式
youtueb -Fhttps://www.youtube.com/watch?v=-jebZmrOvqA
会返回一个

上面是音频,下面是视频,数据是分开存储的,如果下载视频,还需要再安装一个ffmpeg编码器。
2、下载视频、音频
youtueb -f 299+140https://www.youtube.com/watch?v=-jebZmrOvqA
下载299的1080视频,和m4a的音频,再把两个文件合并成一个文件。
3、加速下载
youtube-dl --external-downloader aria2c --external-downloader-args "-x 16" -f 299+140
--external-downloader aria2c 这个命令是指定下载器
--external-downloader-args "-x 16" aria2的参数文件,代表16线程同时下载
经过加速后,速度可以达到400k左右,速度提高8-10倍。
分享完毕,希望对各位有帮助。