Overview
- Skill Key
- easonc13/m3u8-downloader
- Author
- easonc13
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/easonc13/m3u8-downloader
- Latest Commit SHA
- 78fe7dd8f10dbbfc93e25412ec5458768fa3a0ba
Download encrypted m3u8/HLS videos using parallel downloads. Use when given an m3u8 URL to download a video, especially encrypted HLS streams with AES-128.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 m3u8-downloader 技能。 若已安装,则直接安装 m3u8-downloader 技能。
# M3U8 Video Downloader
Download HLS/m3u8 videos with parallel segment downloads and automatic decryption.
## Prerequisites
- `aria2c` (install: `brew install aria2`)
- `ffmpeg` (install: `brew install ffmpeg`)
## Full Workflow (From Webpage to MP4)
### Step 1: Extract m3u8 URL from webpage
If given a webpage URL (not a direct m3u8), use browser automation to find the stream URL:
```javascript
// In browser console or via browser tool evaluate
(() => {
// Check HLS.js player instance
if (window.hls && window.hls.url) return window.hls.url;
if (window.player && window.player.hls && window.player.hls.url) return window.player.hls.url;
// Search window objects for m3u8 URLs
const allVars = Object.keys(window).filter(k => {
try {
return window[k] && typeof window[k] === 'object' &&
window[k].url && window[k].url.includes('m3u8');
} catch(e) { return false; }
});
return allVars.length > 0 ? allVars.map(k => window[k].url) : 'not found';
})()
```
Use `profile=openclaw` (isolated browser) to avoid browser history.
### Step 2: Handle Master Playlist (Multi-Quality)
Master playlists list quality variants, not segments:
```bash
curl -s "https://example.com/playlist.m3u8"
# Output example:
# #EXT-X-STREAM-INF:BANDWIDTH=8247061,RESOLUTION=1920x1080
# 1080p/video.m3u8
# #EXT-X-STREAM-INF:BANDWIDTH=4738061,RESOLUTION=1280x720
# 720p/video.m3u8
```
Pick the highest quality (e.g., 1080p) and fetch that sub-playlist:
```bash
BASE_URL="https://example.com"
curl -s "${BASE_URL}/1080p/video.m3u8"
```
### Step 3: Extract Segment URLs
Segments may have non-standard extensions (e.g., `.jpeg` instead of `.ts`):
```bash
mkdir -p /tmp/video_download && cd /tmp/video_download
BASE_URL="https://example.com/1080p"
curl -s "${BASE_URL}/video.m3u8" | grep -E "^[^#]" | while read seg; do
echo "${BASE_URL}/${seg}"
done > urls.txt
# Count segments
wc -l urls.txt
```
### Step 4: Parallel Download with aria2c
```bash
aria2c -i urls.txt...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.