Faster yt-dlp downloads with aria2
yt-dlp finds the video; aria2 can fetch it over many connections at once. We read yt-dlp's source to show exactly what happens when you hand downloads to aria2, when it helps, and when yt-dlp quietly does not use it at all.
The short version
One flag is enough:
yt-dlp --downloader aria2c "URL"
You do not need -x 16 -s 16 -k 1M: yt-dlp already passes 16 connections and a 1 MiB minimum piece size to aria2c. Add --downloader-args only to change those values.
What yt-dlp passes to aria2c
This is the command line yt-dlp builds for every aria2c download (release 2026.10.26). Knowing it explains most surprises.
| Option | What it means for you |
|---|---|
--no-conf | Your aria2.conf is ignored. Settings there do not apply; pass them with --downloader-args. |
-x16 -s16 -j16 | 16 connections and 16 pieces per file. -j16 has no effect, because each aria2c gets one file. |
--min-split-size 1M | Files are split into pieces as small as 1 MiB, so even short clips use many connections. |
--file-allocation=none | No disk pre-allocation. |
--auto-save-interval=10 | The .aria2 control file is written every 10 seconds, so an interrupted download can resume. |
--http-accept-gzip=true | Compressed responses are accepted. |
--load-cookies=… --header "…" | yt-dlp hands over its cookies and request headers, so signed and logged-in URLs work. |
--max-overall-download-limit --all-proxy --interface | Set from yt-dlp's own -r/--limit-rate, --proxy and --source-address. |
--allow-overwrite=true --always-resume=false --auto-file-renaming=false --force-save=false | Fixed by yt-dlp; it overrides these even if you pass them. |
Your --downloader-args are added after yt-dlp's defaults, and when aria2 sees an option twice the last value wins. We checked this with aria2 1.37.0: -x16 followed by -x 4 opened 4 connections.
When aria2 actually downloads
aria2 handles only plain HTTP, HTTPS and FTP downloads. For everything else yt-dlp silently uses another downloader, even with --downloader aria2c.
| Kind of download | Who downloads it | How to speed it up |
|---|---|---|
| A single file over HTTP(S), e.g. most YouTube formats | aria2c | The default 16 connections; lower them if the site refuses |
| HLS (m3u8) or DASH made of many small fragments | yt-dlp itself (or ffmpeg) | -N 8 downloads 8 fragments at a time |
| A live stream | ffmpeg | Nothing: a live stream arrives in real time |
| --download-sections (only part of a video) | ffmpeg | Nothing aria2 can do |
| Formats that need browser impersonation | yt-dlp itself | Nothing aria2 can do |
Many sites stream HLS, and there aria2 does nothing. Combine both: aria2 for whole files, -N for fragments.
Check that aria2 is used
Run yt-dlp with -v. Before each download handled by aria2, yt-dlp prints the full command line:
yt-dlp -v --downloader aria2c "URL"[debug] aria2c command line: aria2c --no-conf --auto-save-interval=10 --console-log-level=warn --summary-interval=0 --download-result=hide --http-accept-gzip=true --file-allocation=none -x16 -j16 -s16 --min-split-size 1M …
No "aria2c command line" before a download means yt-dlp used another downloader for it (see the table above).
Change aria2's settings
Because yt-dlp starts aria2c with --no-conf, everything goes through --downloader-args.
- 01
Fewer connections
If a site answers with 403 or 429, or downloads stall, use 4 to 8 connections. Fewer connections look less like abuse to strict servers.
yt-dlp --downloader aria2c --downloader-args "aria2c:-x 4 -s 4" "URL" - 02
Fragments in parallel
Leave HLS and DASH to yt-dlp and raise -N. --downloader "dash,m3u8:native" makes that explicit.
yt-dlp --downloader aria2c --downloader "dash,m3u8:native" -N 8 "URL" - 03
More retries
Add --max-tries=5 --retry-wait=3 for flaky connections.
yt-dlp --downloader aria2c --downloader-args "aria2c:--max-tries=5 --retry-wait=3" "URL"
The speed difference comes from per-connection limits. On our test server, which limits each connection, 16 connections were 10.6 times faster than one; see the speed guide. If a site does not limit connections, aria2 will not be faster than yt-dlp alone.
Command builder
Pick what you want; the command updates as you go.
yt-dlp --downloader aria2c -f "bv*+ba/b" --merge-output-format mkv "URL"
Careful: in yt-dlp, -x means "extract audio". It is not aria2's -x; aria2 options always go inside --downloader-args.
Install the three tools
yt-dlp needs ffmpeg to merge separate video and audio. For full YouTube support it also needs yt-dlp-ejs and a JavaScript runtime such as deno; the pip [default] extra installs yt-dlp-ejs.
| Tool | Linux (Debian/Ubuntu) | macOS | Windows |
|---|---|---|---|
| aria2 | sudo apt install aria2 | brew install aria2 | winget install -e --id aria2.aria2 |
| ffmpeg | sudo apt install ffmpeg | brew install ffmpeg | winget install -e --id Gyan.FFmpeg |
| yt-dlp | python3 -m pip install -U "yt-dlp[default]" | brew install yt-dlp | winget install -e --id yt-dlp.yt-dlp |
Update yt-dlp often: sites change and old versions break first. The standalone binary updates with yt-dlp -U; pip installs with the pip command again. Commands checked against each project's documentation; we ran the aria2 ones.
Make it permanent
Put the options in a yt-dlp config file, one per line. yt-dlp reads, among other places:
- Linux, macOS
~/.config/yt-dlp/config - Windows
%APPDATA%\yt-dlp\config - Next to the yt-dlp binary
yt-dlp.conf
--downloader aria2c
--downloader "dash,m3u8:native"
--downloader-args "aria2c:--max-tries=5 --retry-wait=3"
-N 8
-f "bv*+ba/b"
--merge-output-format mkv
--embed-metadata
--embed-chapters
-o "%(title)s [%(id)s].%(ext)s"
This config uses aria2 for whole files, yt-dlp for HLS and DASH with 8 fragments at a time, best video plus audio merged into MKV, and a clean file name.
Troubleshooting
HTTP 403 Forbidden, or aria2 exits with an error
Update yt-dlp first (yt-dlp -U or pip): an outdated extractor is the most common cause. Then lower the connections with --downloader-args "aria2c:-x 4 -s 4", and for videos that need a login add --cookies-from-browser firefox.
HTTP 429 Too Many Requests
You are sending too many requests. Use fewer connections, download fewer videos at once, and add --sleep-requests 1.
aria2 is not used at all
Run with -v. If no aria2c command line appears, the format is HLS, DASH, live or needs impersonation, and yt-dlp uses another downloader by design. If yt-dlp says aria2c is not available, install it and make sure aria2c --version works in the same terminal.
My aria2.conf settings are ignored
yt-dlp starts aria2c with --no-conf. Pass the settings with --downloader-args "aria2c:…" instead.
No sound, or merging fails
ffmpeg is missing or not on your PATH. Install it, check ffmpeg -version, and prefer --merge-output-format mkv, which accepts almost any codec.
FAQ
Is aria2 always faster than yt-dlp alone?
No. aria2 helps when a server limits the speed of each connection, which is common. When one connection already fills your line, both are equally fast, and HLS or DASH fragments never go through aria2.
Do I need -x 16 -s 16 -k 1M?
No. yt-dlp already passes -x16 -s16 --min-split-size 1M. Repeating them changes nothing.
Is --external-downloader still valid?
Yes, as an alias. The current names are --downloader and --downloader-args.
Is this legal?
yt-dlp and aria2 are legal tools. Whether you may download a video depends on its license and the site's terms. Download only what you are allowed to.