Skip to main content

m3u8 下载器

Project description

hs-m3u8

m3u8 视频下载工具。支持大部分的m3u8视频下载。后续增加UI界面。

功能

  • aes解密
  • 自动选择高分辨m3u8
  • 合并MP4
  • 可选择保留ts文件
  • 内置Windows平台ffmpeg可执行文件(由于Linux及Mac下权限问题,需自行安装ffmpeg文件)

使用

url = "https://surrit.com/6d3bb2b2-d707-4b79-adf0-89542cb1383c/playlist.m3u8"
name = "SDAB-129"
dl = M3u8Downloader(
    url=url,
    save_path=f"downloads/{name}",
    max_workers=64
)
await dl.run(del_hls=False, merge=True)
  • del_hls 为True时会删除ts、m3u8、key等文件,否则会经过处理后保留,以便直接使用
  • merge 为True时会自动合并为mp4

安装

rye 安装

rye sync

pip 安装

requirements.lock文件是在Mac环境在生成的,不同系统环境下可能会遇到不同的效果,如果使用请使用rye安装

pip install -r requirements.lock

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

hs_m3u8-0.1.0a1.tar.gz (60.0 MB view details)

Uploaded Source

Built Distribution

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

hs_m3u8-0.1.0a1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file hs_m3u8-0.1.0a1.tar.gz.

File metadata

  • Download URL: hs_m3u8-0.1.0a1.tar.gz
  • Upload date:
  • Size: 60.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hs_m3u8-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 8b7ff1e67033a4317ff182e897dcfb52ee8a3299a8a87b0933f080f8fe82e396
MD5 34696f9a4a49115d8f63d2e3b4ad17d6
BLAKE2b-256 31d54391a86a7699de35d25d86b7786f8fb0803d88093a404beba3c9b3b6a207

See more details on using hashes here.

File details

Details for the file hs_m3u8-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: hs_m3u8-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hs_m3u8-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 6779182f6be3c0a7abad2fe23aed05c00be9df41382e656b6ce0e02bf7c70fa0
MD5 7540d6d180c4cac2b7a6a8672c748737
BLAKE2b-256 9163033c8ce7e042d5796a77035e317688d575efb2f1633d4449e16c2bc773ce

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