Giter Site home page Giter Site logo

m3u8tomp4's Introduction

m3u8ToMp4 (DEPRECATED)

download video by m3u8 url
Here is a substitute that supported asynchronous way
aiom3u8

Installing m3u8ToMp4 and Supported Versions:

m3u8ToMp4 is available on PyPI:

$ python -m pip install m3u8ToMp4

# Using a mirror
$ python -m pip install m3u8ToMp4 -i https://pypi.tuna.tsinghua.edu.cn/simple

Basic Usage:

import m3u8ToMp4

m3u8ToMp4.download("https://demo.com/demo/demo.m3u8", "C:\\videos", "video_name")  #using default config

m3u8ToMp4.download("https://demo.com/demo/demo.m3u8", "C:\\videos", "video_name",
              folder_need=False, download_queue_length=500, detect_queue_time=5,
              single_delete_length=200, auto_bitrate=True, auto_bitrate_level="HIGHEST")  #using adjustment params

OR

import m3u8ToMp4

m3u8ToMp4.download_console()
#Then type params by console

Adjustment Parameter Description:

  • folder_need: bool       - Whether you need a folder to contain the target video
  • download_queue_length: int    - The number of threads to download the video
  • detect_queue_time: int     - The cooldown of replenishing the new threads to replace the threads that have completed the target in seconds
  • single_delete_length: int      - The number of slices merged at one time
  • auto_bitrate: bool        - Whether you need a automatic selection if it has several options in video quality
  • auto_bitrate_level: str      - The video quality in automatic selection, "HIGHEST" and "LOWEST" only

auto_bitrate and auto_bitrate_level need to be used together

Module Supported:

Supported Features:

  • Find new m3u8 url automatically
  • Find new ts file suffix if it is changed
  • User select the video quality if it has several options - (called by download_console or setting auto_bitrate = False in download)
  • Video quality automatic selection - (effected by setting auto_bitrate and auto_bitrate_level)
  • AES-128-CBC Decrypt
  • Multi-threading

TODO

  • Random Proxies - reduce the odds of detecting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.