aliyun-m3u8-downloader

command module
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 1 Imported by: 0

README

aliyun-m3u8-downloader

aliyun-m3u8-downloader 是一个使用了 Go 语言编写的迷你 M3U8 下载工具, 支持阿里云m3u8私有加密。 该工具就会自动帮你解析 M3U8 文件,并将 TS 片段下载下来合并成一个文件。

本工具只供学习研究,如有侵权请联系删除

支持

可交流以下视频云服务的第三方平台下载器的逆向技术,逆向交流微信:lbbniu-com

  • 阿里云私有音视频加密
  • 火山引擎视频云点播
  • 百度智能云视频点播
  • 华为云视频点播
  • 气球云视频点播
  • 保利威视 Polyv 逆向分析进行中...
联系开发者

wechat

插件

目前支持的闭源全自动批量下载器插件包括:

阿里云
气球云
保利威视
其他

main

功能

  • 支持阿里云M3U8私有加密解密
  • 下载和解析 M3U8(仅限 VOD 类型)
  • 下载 TS 失败重试
  • 解析 Master playlist
  • 解密 TS
  • 合并 TS 片段

用法

源码方式
# 交叉编译
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o aliyun-m3u8-downloader
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o aliyun-m3u8-downloader
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o aliyun-m3u8-downloader.exe
# 普通m3u8下载
go run main.go normal -u=https://www.lbbniu.com/index.m3u8 -o=/data/example --chanSize 1
# 阿里云m3u8私有加密
go run main.go aliyun -p "WebPlayAuth" -v 视频id -o=/data/example --chanSize 1
二进制方式:

Linux 和 MacOS

# 普通m3u8下载
./aliyun-m3u8-downloader normal -u https://www.lbbniu.com/index.m3u8 -o=/data/example -c 1
# 阿里云m3u8私有加密
./aliyun-m3u8-downloader aliyun -p "PlayAuth" -o=/data/example -c 1
# 火山引擎视频云视频下载
./aliyun-m3u8-downloader bytedance -p "PlayAuthToken" -o=/data/example -c 1
# 百度智能云视频下载
./aliyun-m3u8-downloader baidu -u m3u8视频地址 -t token  -o=/data/example -c 1
命令帮助
 aliyun-m3u8-downloader -h
A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.

Usage:
  aliyun-m3u8-downloader [command]

Available Commands:
  51cto         51cto课程下载
  aliyun        阿里云私有m3u8加密下载工具
  aura          光环国际视频下载
  baidu         百度智能云视频下载
  baidubce      baidubce视频下载
  bytedance     字节跳动,火山引擎视频云视频加密下载工具
  chinapm       现代卓越视频下载
  completion    Generate the autocompletion script for the specified shell
  eoffcn        中公网校课程下载
  fhzjedu       学培课堂课程下载
  geektime      极客时间训练营下载
  gk            极客时间训练营下载
  help          Help about any command
  huohujiaoyu   云上虎视频下载
  imooc         慕课网体系课/实战课下载
  multi         根据PlayAuth批量输出m3u8地址和解密key
  normal        普通m3u8 或 标准AES-128加密 下载
  qiqiuyun      气球云视频下载
  veterinaryapp 某兽医app视频下载
  yixueks       银成医考课程下载

Flags:
  -c, --concurrency int     下载并发数 (default 1)
  -f, --filename string     保存文件名
  -h, --help                help for aliyun-m3u8-downloader
  -o, --output string       下载保存位置
  -r, --referer string      referer请求头
      --user-agent string   User-Agent

Use "aliyun-m3u8-downloader [command] --help" for more information about a command.

下载

二进制文件

参考资料

License

MIT License

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
pkg
log
parse
Package parse
Package parse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL