Skip to main content

Python downloader for saving m3u8 video to local MP4 file.

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 by pip

Configure ffmpeg.

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. Resume from interruption.

  3. Use system tmp folder.

  4. Concurrent requests based on the thread pool.

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

m3u8_To_MP4-0.1.2-py3-none-any.whl (7.7 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