Skip to content

Instantly share code, notes, and snippets.

@sahal
Last active July 17, 2023 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sahal/83a8ce9fd77e7c3e413a529e2274e4d4 to your computer and use it in GitHub Desktop.
Save sahal/83a8ce9fd77e7c3e413a529e2274e4d4 to your computer and use it in GitHub Desktop.
youtube dl options

youtube-dl options

How to use an external downloader aria2c rather than internal http client. See also: ytdl-org/youtube-dl#6923

This seemed to work at the following commit hash. YMMV.

$ git remote show origin
* remote origin
  Fetch URL: git@github.com:ytdl-org/youtube-dl.git
  Push  URL: git@github.com:ytdl-org/youtube-dl.git
  HEAD branch: master
. . .
$ git rev-parse HEAD
f24bc9272e9b74efc4c4af87c862f5f78921d424

The best part

If you clone this from the above listed repo, you can run the following. Otherwise, you'll have to specify the path to youtube-dl on your system.

$ python -m youtube_dl --external-downloader aria2c https://www.youtube.com/watch?v=dQw4w9WgXcQ -vvvv
@sahal
Copy link
Author

sahal commented Jul 17, 2023

Install aria2c via pacman: https://archlinux.org/packages/?name=aria2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment