← 返回
内容创作

M3U8 Media Downloader

Use @lzwme/m3u8-dl for media download and video info parsing. Use when the user mentions video/music download (m3u8/HLS/mp4/mp3 or 抖音/皮皮虾/微博视频), or 获取视频信息、解析...
Use @lzwme/m3u8-dl for media download and video info parsing. Use when the user mentions video/music download (m3u8/HLS/mp4/mp3 or 抖音/皮皮虾/微博视频), or 获取视频信息、解析...
renxia
内容创作 clawhub v1.0.3 2 版本 100000 Key: 无需
★ 1
Stars
📥 692
下载
💾 94
安装
2
版本
#latest

概述

m3u8-downloader

Download m3u8/mp4 video and mp3/music, support 抖音、皮皮虾、微博 sharing links. Multi-thread download, WebUI, batch and Node API.

Example:

> 使用 m3u8-media-downloader 下载抖音视频/获取该视频详情:https://v.douyin.com/CW1iv0GeSJM/

Main capabilities

  • m3u8/HLS & mp4 — download and merge to mp4 (ffmpeg required for ts→mp4)
  • Music — mp3/m4a from m3u8/stream sources
  • 抖音/皮皮虾/微博 — parse or download sharing links

CLI

# 推荐方式:固定版本执行
m3u8dl <urls...> [options]
m3u8dl info <url>        # 解析视频信息
m3u8dl server            # 启动 WebUI (http://localhost:6600)

Key options

OptionDescription
---------------------
-f, --filename Output filename
-n, --thread-num Download threads (default: 4)
-S, --save-dir Save directory
-T, --type m3u8 (default) \parser \web
-H, --headers Custom request headers
--ffmpeg-path ffmpeg path (for mp4 conversion)

Quick examples

# Basic download
m3u8dl https://example.com/video.m3u8 -f "My Video" -S ./downloads

# 抖音/皮皮虾/微博 sharing link
# parser and download video
m3u8dl "https://v.douyin.com/xxxxx/" --type parser
# parser and print info
m3u8dl info "https://h5.pipix.com/xxxxx"

# With name: "name|url"
m3u8dl "Episode 1|https://example.com/ep1.m3u8"

# Batch: file with one "filename$url" per line
m3u8dl series-list.txt -f "Series Name"

# Extract m3u8 from web page
m3u8dl "https://example.com/play/123" --type web

WebUI

m3u8dl server [-P <port>] [-t <token>]
# Optional env vars for customization: DS_PORT, DS_SECRET, DS_SAVE_DIR, DS_CACHE_DIR, DS_FFMPEG_PATH

Open http://localhost:6600 to manage tasks in browser.

Security Considerations

> ⚠️ Important Security Notice

  • Version Pinning: This skill uses pinned version @1.9.0 to prevent execution of different code on each run
  • Code Review: Inspect the package via npm view @lzwme/m3u8-dl@1.9.0 or GitHub before execution
  • Sandbox Environment: Run download tasks in an isolated environment with restricted filesystem permissions
  • ffmpeg Installation: Ensure ffmpeg is installed from official or trusted sources only
  • Sensitive Variables: DS_SECRET is sensitive - configure carefully to protect WebUI access
  • Legal Compliance: Ensure downloads comply with local laws and source site terms of service

Node API

import { m3u8Download, VideoParser, m3u8BatchDownload } from '@lzwme/m3u8-dl';

// Download m3u8/mp4
await m3u8Download(url, { filename: 'video', saveDir: './downloads' });

// Parse 抖音/皮皮虾/微博
const parser = new VideoParser();
const info = await parser.parse('https://v.douyin.com/xxxxx/');
await parser.download(info, { saveDir: './downloads' });

// Batch download
await m3u8BatchDownload(['name1$url1', 'name2$url2'], { saveDir: './downloads' });

Scenario guide

ScenarioCLINode API
-------------------------
m3u8/mp4 URLm3u8dl m3u8Download(url)
抖音/皮皮虾/微博--type parser or info VideoParser.parse()
Web page with m3u8--type webgetM3u8Urls()
Batch download`"name\url"` or filem3u8BatchDownload()
mp4 conversionRequires ffmpegSet ffmpegPath

LINKS

  • source: https://github.com/lzwme/m3u8-dl/tree/main/packages/ai-agent/skills/m3u8-media-downloader

版本历史

共 2 个版本

  • v1.0.3 当前
    2026-03-29 15:18 安全 安全
  • v1.0.0
    2026-03-26 21:41

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,464
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,049
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,664