Skip to main content

this is a description

Project description


This is a pipe compatiable tool for downloading m3u8.

  1. Fast download for m3u8.
  2. Auto decrpt the key.


since the name m3u8_dl is taken by other developer...

short it to m3_dl

pip3 install m3_dl

python version should be bigger than 3.7.1, my dev env is 3.7.1


m3_dl <m3u8_url> -o <dest>


# download to local file
m3_dl -o ./a.mp4

# pipe it to mpv
m3_dl | mpv -

# pipe it to mpv and save to local
m3_dl | tee > ./a.mp4 | mpv -

Full Usage

usage: m3_dl [-h] [-o OUT_PATH] [-p PROXY] [-t THREADCOUNT] [-d] [-w] [-s]
             [--version] [-k]

positional arguments:
  url                   url

optional arguments:
  -h, --help            show this help message and exit
  -o OUT_PATH, --out_path OUT_PATH
                        output path (default: None)
  -p PROXY, --proxy PROXY
                        for example: socks5h:// (default: None)

  -e KEY                custom decrypt key
                        thread count (default: 2)
  -d, --debug           debug info (default: False)
  -w, --overwrite       overwrite existed file (default: False)
  --version             show program's version number and exit
  -k, --ignore_certificate_verfication
                        ignore certificate verfication, don`t use this option
                        only if you know what you are doing! (default: False)


  1. enable redownlowd
  2. make it mitm compatiable


Why still can't I download m3u8 even though I got the correct m3u8 content?

Sometimes m3u8 file is not enough for m3_dl to donwload, cause the key is protected by user credential or whatever.

You need to get the key somehow. and tell m3_dl by -e option.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for m3-dl, version 0.0.39
Filename, size File type Python version Upload date Hashes
Filename, size m3_dl-0.0.39-py2.py3-none-any.whl (10.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page