Skip to main content

Python downloader for saving m3u8 video to local MP4 file.

Reason this release was yanked:

Logging level is DEBUG

Project description

https://img.shields.io/pypi/v/m3u8-To-MP4?style=flat-square:alt:PyPI

m3u8-To-MP4

Python downloader for saving m3u8 video to local MP4 file.

QuickStart

Install m3u8_To_MP4 via pip

  1. Preparation: configure ffmpeg. (e.g., Win10)

    • Download “release full” build. It will have the largest set of libraries with greater functionality.

    • Extract the contents in the ZIP file to a folder of your choice.

    • To add FFmpeg to Win10 path. (User variables -> Path -> New and add)

    • Verify. Open the Command Prompt or PowerShell window, type ffmpeg, and press Enter.

  2. Installation: m3u8_To_MP4

    pip install m3u8_To_MP4

Download a mp4 vidoe from a m3u8 uri

To download a m3u8 video into a mp4 file, use the download functions:

import m3u8_to_mp4

m3u8_to_mp4.download('http://videoserver.com/playlist.m3u8')

Resume the transfer from the point of interruption, use the tmpdir arguement:

import m3u8_to_mp4

m3u8_to_mp4.download('http://videoserver.com/playlist.m3u8',tmpdir='/tmp/m3u8_xx')

Features

  1. Treat ffmpeg as a system service to achieve cross-platform.

  2. If ffmpeg is not found, archiving is also supported. (v0.1.3 new features)

  3. Resume from interruption. (based on crc32 temp directory path)

  4. Use system tmp folder.

  5. Concurrent requests based on the thread pool.

  6. Concurrent requests based on efficient coroutines (v0.1.3 new features).

  7. The retry strategy is carried out collectively after the whole cycle is repeated, avoiding the problem of short retry interval.

TODO

  • Align asynchronous implementation with multithreads.

  • Errors: application data after close notify.

  • Extract independent asynchronous http package.

Project details


Download files

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

Source Distribution

m3u8-To-MP4-0.1.5.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

m3u8_To_MP4-0.1.5-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page