All Projects → llychao → m3u8-downloader

llychao / m3u8-downloader

Licence: MIT license
一个M3U8 视频下载(M3U8 downloader)工具。跨平台: 提供windows、linux、mac三大平台可执行文件,方便直接使用。

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to m3u8-downloader

N m3u8dl Cli
[.NET] m3u8 downloader 开源的命令行m3u8/HLS/dash下载器,支持普通AES-128-CBC解密,多线程,自定义请求头等. 支持简体中文,繁体中文和英文. English Supported.
Stars: ✭ 6,752 (+1364.64%)
Mutual labels:  m3u8, m3u8-downloader
m3u8
m3u8 file downloader library and chrome & firefox extensions/add-on's
Stars: ✭ 67 (-85.47%)
Mutual labels:  m3u8, m3u8-downloader
Mediasdk
The library is working for downloading video while playing the video, the video contains M3U8/MP4
Stars: ✭ 164 (-64.43%)
Mutual labels:  m3u8
zh-downloader
一个可以直接下载知乎视频的浏览器插件
Stars: ✭ 54 (-88.29%)
Mutual labels:  m3u8-downloader
Android-hls
最近公司产品需要,调研hls(m3u8) aes-128 解密播放 . 分析 51Cto, 慕课
Stars: ✭ 73 (-84.16%)
Mutual labels:  m3u8
M3u8
A mini M3U8 downloader written in Golang for downloading and merging TS(Transport Stream) files. 一个迷你 M3U8 视频下载工具。
Stars: ✭ 215 (-53.36%)
Mutual labels:  m3u8
make lrc music m3u
网抑云音乐歌单同步 导出播放列表 Cloud music playlist sync
Stars: ✭ 28 (-93.93%)
Mutual labels:  m3u8
M3u8downloader
M3U8下载库,可以实现M3U8视频的下载,支持M3U8重定向,同时支持其他格式文件下载,例如MP4文件,目前支持kotlin、java、python3.x 三个语言版本
Stars: ✭ 145 (-68.55%)
Mutual labels:  m3u8
m3u8 downloader
Flutter M3U8下载器
Stars: ✭ 43 (-90.67%)
Mutual labels:  m3u8
hls-downloader
Download all video files from HLS (HTTP Live Streaming) VoD (Video on Demand) m3u8 playlist for local playback
Stars: ✭ 121 (-73.75%)
Mutual labels:  m3u8
m3u8-downloader
chrome插件,支持监控和下载:m3u8流媒体、视频、音频
Stars: ✭ 54 (-88.29%)
Mutual labels:  m3u8
iptv-playlist-aggregator
Aggregator for IPTV playlists from multiple sources
Stars: ✭ 35 (-92.41%)
Mutual labels:  m3u8
Vatfs
影视全搜索|提供全网影视m3u8资源搜索,影视资源api,无广告快速播放
Stars: ✭ 239 (-48.16%)
Mutual labels:  m3u8
Downloader-M3u8
Download M3u8 easily with FFMpeg library in Android
Stars: ✭ 25 (-94.58%)
Mutual labels:  m3u8
M3u8parser
A light weight M3U8 parser. Support X-Key & X-Session-Key.
Stars: ✭ 187 (-59.44%)
Mutual labels:  m3u8
CBPlayer
一个内置P2P的神奇播放器
Stars: ✭ 60 (-86.98%)
Mutual labels:  m3u8
P2p Cdn Sdk Javascript
Free p2p cdn github javascript sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 158 (-65.73%)
Mutual labels:  m3u8
m3u8-downloader
Downloader m3u8 files
Stars: ✭ 32 (-93.06%)
Mutual labels:  m3u8download
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (-86.77%)
Mutual labels:  m3u8
YouTube to m3u
Grab .m3u8 from YouTube live channels and makes .m3u IPTV Playlist from various languages and Events. Tamil / Malayalam / English / Hindi / French / Kids / Sports / Urudu etc.
Stars: ✭ 48 (-89.59%)
Mutual labels:  m3u8

m3u8-downloader

golang 多线程下载直播流m3u8格式的视屏,跨平台。 你只需指定必要的 flag (uonht) 来运行, 工具就会自动帮你解析 M3U8 文件,并将 TS 片段下载下来合并成一个文件。

功能介绍

  1. 下载和解析 M3U8
  2. 下载 TS 失败重试 (加密的同步解密)
  3. 合并 TS 片段

可以下载岛国小电影
可以下载岛国小电影
可以下载岛国小电影
重要的事情说三遍......

效果展示

demo

参数说明:

- u M3U8 地址
- o 自定义文件名, 默认 movie
- n 下载协程并发数,默认 16
- ht 设置getHost的方式(共两种 apiv1 和 apiv2), 默认 apiv1
- c 自定义请求cookie, 默认空 (例如:key1=v1; key2=v2)
- s 是否允许不安全的请求, 默认 0
- sp 文件保存路径, 默认为当前路径(例如:unix:/Users/liyuchao ; windows:C:\Documents)

默认情况只需要传u参数,其他参数保持默认即可。 部分链接可能限制请求频率,可根据实际情况调整 n 参数的值。

下载

已经编译好的平台有: 点击下载

  • windows/amd64
  • linux/amd64
  • darwin/amd64

用法

源码方式

自己编译:go build -o m3u8-downloader
简洁使用:./m3u8-downloader  -u=http://example.com/index.m3u8
完整使用:./m3u8-downloader  -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"

二进制方式:

Linux 和 MacOS 和 Windows PowerShell

简洁使用:
./m3u8-linux-amd64 -u=http://example.com/index.m3u8
./m3u8-darwin-amd64 -u=http://example.com/index.m3u8 
.\m3u8-windows-amd64.exe -u=http://example.com/index.m3u8

完整使用:
./m3u8-linux-amd64 -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"
./m3u8-darwin-amd64 -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"
.\m3u8-windows-amd64.exe -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"

问题说明

1.在Linux或者mac平台,如果显示无运行权限,请用chmod 命令进行添加权限

 # Linux amd64平台
 chmod 0755 m3u8-linux-amd64
 # Mac darwin amd64平台
 chmod 0755 m3u8-darwin-amd64

2.下载失败的情况,请设置 -ht="apiv1" 或者 -ht="apiv2" (默认为apiv1)

func get_host(Url string, ht string) string {
    u, err := url.Parse(Url)
    var host string
    checkErr(err)
    switch ht {
    case "apiv1":
        host = u.Scheme + "://" + u.Host + path.Dir(u.Path)
    case "apiv2":
        host = u.Scheme + "://" + u.Host
    }
    return host
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].