youtube-dl for Android

This is an (unofficial) build of youtube-dl for ARM-based Android devices.
The distribution includes everything needed to run youtube-dl, that is: Python, its stdlib and youtube-dl itself.

Download

The current build (7th April 2022) uses:

  1. Python 3.9.12, youtube-dl 2022.12.17
  2. linked with OpenSSL 1.1.1n
  3. built with NDK r24, API level: 21

URL: https://kitsunemimi.pw/ytdl/dist.zip

Usage

After unpacking, youtube-dl can be invoked using PYTHONHOME=. ./python3 youtube-dl.
You probably want to create a wrapper script like this:

#!/system/bin/sh cd /path/to/youtube/dl export PYTHONHOME=. exec ./python3 youtube-dl "$@"

Note: SSL/TLS certificate validation is enabled, so the SSL_CERT_FILE environment variable should point to the trusted certificate store.

Contact

If you just need a newer youtube-dl, you can run youtube-dl --update on device or replace the file with a fresh one from here.
You can also reach me on the mpv-android IRC channel.