Skip to main content
m3u8downloader
============================

m3u8downloader is a tool to download video at a m3u8 link. `HTTP Live
Streaming (HLS)<https://developer.apple.com/streaming/>`_ is becoming
popular. m3u8 playlist is used by HLS to serve video fragments of different
quality to different clients. This tool supports HLS master playlist and media
playlist. If master playlist is given, it selects the highest resolution
automatically. HLS fragment encryption is supported.

ffmpeg is used to convert the downloaded fragments into final mp4 video file.

Installation
------------

To install m3u8downloader, simply:

.. code-block:: bash

$ sudo apt install -y ffmpeg
$ pip install --user m3u8downloader


Quick Start
-----------

Example command line usage:

.. code-block:: bash

downloadm3u8 -o ~/Downloads/foo.mp4 https://example.com/path/to/foo.m3u8

If ~/.local/bin is not in $PATH, you can use full path:

.. code-block:: bash

~/.local/bin/downloadm3u8 -o ~/Downloads/foo.mp4 https://example.com/path/to/foo.m3u8

Here is built-in command line help:

.. code-block:: bash

usage: m3u8downloader [-h] [--version] [--debug] --output OUTPUT
[--tempdir TEMPDIR] [--concurrency N]
URL

download video at m3u8 url

positional arguments:
URL the m3u8 url

optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--debug enable debug log
--output OUTPUT, -o OUTPUT
output video filename, e.g. ~/Downloads/foo.mp4
--tempdir TEMPDIR temp dir, used to store .ts files before combing them
into mp4
--concurrency N, -c N
number of fragments to download at a time

Documentation
-------------

This command line tool doesn't have extra documents.

Limitations
-------------

This tool only parses minimum m3u8 extensions for selecting media playlist
from master playlist, downloading key and fragments from media playlist. If a
m3u8 file doesn't download correctly, it's probably some new extension was
added to the HLS spec which this tool isn't aware of.

ChangeLog
---------

* v0.7.3 2019-03-07

- initial release


Metadata

Release files for m3u8downloader 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for m3u8downloader 0.7.3
File Size Uploaded Provenance Actions
m3u8downloader-0.7.3.tar.gz 7.4 kB Without provenance Details for m3u8downloader-0.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for m3u8downloader 0.7.3
File Interpreter ABI Platform Actions
m3u8downloader-0.7.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for m3u8downloader-0.7.3-py2.py3-none-any.whl

Total release size: 17.9 kB

Release files / m3u8downloader-0.7.3.tar.gz

Download URL m3u8downloader-0.7.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d164db9aa769232f876b2c709e46b2af30356c41649417499a2263bc3ef0abca
BLAKE2b-256 checksum
How to use checksums
9bab865b588374507cf5c87dfc8d6fc0d768a57424e0d57420f9ef84090bbf34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Release files / m3u8downloader-0.7.3-py2.py3-none-any.whl

Download URL m3u8downloader-0.7.3-py2.py3-none-any.whl
Size 10.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e016e7df1a243a3e8a71065ca4c3a86421601ab403d6ebf49c46b0756fd16cda
BLAKE2b-256 checksum
How to use checksums
bb34bf102f50aae9fbaab0f03a1aeba8e5545d2a45cc7a368b4a99334557ba80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Security for m3u8downloader 0.7.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page