Skip to main content

Python downloader for saving m3u8 video to local MP4 file.

Project description

https://img.shields.io/pypi/v/0.1.1: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 Distribution

m3u8-To-MP4-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m3u8_To_MP4-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file m3u8-To-MP4-0.1.1.tar.gz.

File metadata

  • Download URL: m3u8-To-MP4-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8

File hashes

Hashes for m3u8-To-MP4-0.1.1.tar.gz
Algorithm Hash digest
SHA256 db353708516f6e20ebf0345f841241f8cf8034e15dda961a118654d2d02931b0
MD5 4b2615ad838758e47234ffa18f88381a
BLAKE2b-256 0ef4161d1fe1cb75f249648907ee55479631ccdf41dc671a52e2d07860e14aed

See more details on using hashes here.

File details

Details for the file m3u8_To_MP4-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: m3u8_To_MP4-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8

File hashes

Hashes for m3u8_To_MP4-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3097a0f749373e84df86bdf6919c45ec3b58817efc1fd8f09876a34153368e72
MD5 a86c8c031f3ca3e34e4c39b71fbff129
BLAKE2b-256 e2a03999281bac4b6b6b3167b894864887c2356c3af78a085b35c1929cdd4a71

See more details on using hashes here.

Supported by

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