M3u8Grabber
Experimental command line tool downloading the content of a m3u8 file containing TS video segments and converting them to mkv.
Install / Use
/learn @mattetti/M3u8GrabberREADME
m3u8Grabber
This command line tool is designed to download a MPEG video Transport Stream defined in a m3u8 file into an mp4 file. Full hls protocol isn't implemented.
Requirements
OS: unix, windows
Go: https://golang.org
Libraries: ffmpeg needs to be installed and available (for conversion).
Usage
$ go build . $ m3u8Grabber --m3u8="http://someCompatibleM3U8.url" --output="coolStuff"
The grabber can also be run as a server and receives downloads via HTTP requests (undocumented).
Status
This was developed for very specific use cases and isn't well tested outside of those sources. AES encrypted playlists with sequential IVs and a global key are supported.
Using this tool to download playlists is much faster for my use case than using ffmpeg directly (10x speed difference on a 200MB file). This is probably due to the fact that this code uses goroutines to process segments in parallel and does way less than ffmpeg in general.
Using ffmpeg to convert ts to mp4 is a bit sad and this dependency could be dropped in the future (PRs welcome).
Related Skills
docs-writer
99.5k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
341.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
project-overview
FlightPHP Skeleton Project Instructions This document provides guidelines and best practices for structuring and developing a project using the FlightPHP framework. Instructions for AI Coding A
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
