Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lcy0321/m3u8-downloader

Download the ts files according to the given m3u8 file.
https://github.com/lcy0321/m3u8-downloader

ffmpeg hls m3u8 m3u8-videos python python-script

Last synced: 26 days ago
JSON representation

Download the ts files according to the given m3u8 file.

Awesome Lists containing this project

README

        

[![Made with Python](https://img.shields.io/badge/MADE_WITH-Python3-3776ab.svg)](https://www.python.org/)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)

# M3U8 Downloader

Download the ts files according to the given m3u8 file.

## Usage

```text
m3u8_downloader.py [-h] [-t TIMEOUT] [--ffmpeg-path FFMPEG_PATH]
[--ffmpeg-loglevel FFMPEG_LOGLEVEL] [-o OUTPUT] [-y] uri

positional arguments:
uri URI of the m3u8 file

optional arguments:
-h, --help show this help message and exit
-t TIMEOUT, --timeout TIMEOUT
timeout used when loading from uri (default None)
--ffmpeg-path FFMPEG_PATH
path to ffmpeg executable (default ffmpeg)
--ffmpeg-loglevel FFMPEG_LOGLEVEL
logging level of ffmpeg (default quiet)
-o OUTPUT, --output OUTPUT
path to output (default output.ts)
-y, --overwrite overwrite output files without asking
```

## Dependencies

* **ffmpy**: - A simplystic FFmpeg command line wrapper.

* **m3u8**: - Python m3u8 parser.

* **ffmpeg**: - Used to download, convert and merge the downloaded ts files.