Python downloader for saving m3u8 video to local MP4 file.
Reason this release was yanked:
Logging level is DEBUG
Project description
m3u8-To-MP4
Python downloader for saving m3u8 video to local MP4 file.
QuickStart
Install m3u8_To_MP4 via pip
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.
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
Treat ffmpeg as a system service to achieve cross-platform.
If ffmpeg is not found, archiving is also supported. (v0.1.3 new features)
Resume from interruption. (based on crc32 temp directory path)
Use system tmp folder.
Concurrent requests based on the thread pool.
Concurrent requests based on efficient coroutines (v0.1.3 new features).
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for m3u8_To_MP4-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95a99f6da79fe769bea9b35d8e2e382a14274f0b78cd559127dcf42f0fad4614 |
|
MD5 | 971f33016d057697275085979ef9e5bc |
|
BLAKE2b-256 | d33452d79c55620ec7621800f8c96453282fc6e15a2df52b6d2e601f8a12dccc |