ffmpeg-hls

Convert Mirakc MPEG-TS streams into HLS segments with FFmpeg.

1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/tkgstrator/KotoTV --skill ffmpeg-hls
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ffmpeg-hls
Source: https://github.com/tkgstrator/KotoTV/tree/main/.claude/skills/ffmpeg-hls
Command: npx skills add https://github.com/tkgstrator/KotoTV --skill ffmpeg-hls

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts live MPEG-TS streams from Mirakc into scalable HTTP-delivered HLS output using FFmpeg, enabling browser-friendly streaming without bespoke players.

Core Features & Use Cases

  • Hardware-accelerated transcoding options (nvenc, qsv, vaapi) with a software fallback to maximize throughput.
  • End-to-end pipeline from Mirakc to HLS playlist and segments stored in tmpfs for fast serving.
  • Session-based transcoding lifecycle managed via Bun.spawn with per-session cleanup and idle timeouts.

Quick Start

Start a streaming session by piping Mirakc's MPEG-TS stream into FFmpeg to generate HLS playlists and segments, then serve them via your HTTP endpoint.

Frequently Asked Questions about ffmpeg-hls

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Mirakc MPEG-TS streams to HLS for web delivery?

To convert Mirakc MPEG-TS streams to HLS, you pipe the live stream into FFmpeg to generate playlist.m3u8 and .ts segments. This pipeline outputs browser-friendly HTTP-delivered HLS without requiring bespoke players.

Does this live streaming pipeline support hardware acceleration with nvenc and qsv?

Yes, this live streaming pipeline supports hardware acceleration with nvenc, qsv, and vaapi, alongside a software fallback. It applies an adaptive FFmpeg command builder to select the best available hardware accelerator for transcoding.

What's the best way to serve HLS segments generated from live MPEG-TS streams?

The best way to serve HLS segments from live MPEG-TS streams is storing playlist.m3u8 and .ts segments in tmpfs for fast HTTP serving. This approach enables scalable browser-friendly streaming directly from the organized output directory.

Can I use FFmpeg for real-time live streaming without a dedicated media server?

You can use FFmpeg for real-time live streaming by translating Mirakc MPEG-TS streams into HLS segments for direct HTTP delivery. The pipeline manages the transcoding lifecycle via Bun.spawn with automatic per-session cleanup.

Why use tmpfs for storing HLS playlists and segments during live transcoding?

Using tmpfs for storing HLS playlists and segments during live transcoding provides fast serving for HTTP endpoints. The pipeline writes playlist.m3u8 and .ts segments to tmpfs, enabling scalable web delivery with per-session cleanup.