跳到正文
TakoAPI
返回技能列表

m3u8-downloader

由 easonc13 提供

Coding Agents & IDEs
472下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Download encrypted m3u8/HLS videos using parallel downloads.

描述

该技能的功能

Downloads HLS/m3u8 video streams, including AES-128 encrypted ones, by fetching segments in parallel and merging them into a single MP4. Works with master playlists, non-standard segment extensions, and streams that require browser inspection to locate the URL.

Parallel segment downloading with aria2c is significantly faster than sequential tools, and built-in AES-128 decryption via ffmpeg handles encrypted streams that most download managers fail on.

何时使用

  • Downloading a paywalled lecture video for offline viewing
  • Saving a live event replay before it expires
  • Grabbing a 1080p stream from a site with no download button
  • Archiving encrypted HLS content from a private portal
  • Extracting the highest-quality variant from a multi-bitrate stream

示例工作流

输入

User asks: download the video at https://example.com/watch?id=123

智能体
  1. 1

    Open the page in an isolated browser and run console JS to extract the m3u8 URL from the HLS.js player instance

  2. 2

    Fetch the master playlist with curl and identify the highest-bandwidth variant

  3. 3

    Download all segments to /tmp/video_download using aria2c with 16 parallel connections

  4. 4

    Generate a filelist.txt and merge segments into a single MP4 with ffmpeg -c copy

  5. 5

    Move the file to ~/Downloads and clean up the temp directory

输出

~/Downloads/output.mp4 containing the full video, no re-encoding

前置要求

  • aria2c (brew install aria2)
  • ffmpeg (brew install ffmpeg)

安装

clawhub install easonc13/m3u8-downloader

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接