From claude-mediakit
This skill should be used when the user asks to "transcode a video", "convert to HLS", "make a video streamable", "create an adaptive bitrate stream", "generate an m3u8", or wants a video prepared for web playback or sharing. Produces an HLS bitrate ladder plus a faststart MP4 using ffmpeg.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-mediakit:video-to-hlsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Convert a source video into adaptive-bitrate **HLS** (an `.m3u8` master playlist with
Convert a source video into adaptive-bitrate HLS (an .m3u8 master playlist with
several quality renditions and .ts segments) plus a faststart MP4 for single-file
sharing. HLS lets players switch quality based on bandwidth and start playback before the
whole file downloads.
Use this skill whenever a video needs to be streamed on the web, embedded in a player, or shared in a way that adapts to connection speed — not just re-encoded to a single file.
ffmpeg and ffprobe are on PATH (ffmpeg -version). If missing, point the
user to https://ffmpeg.org/download.html.ffprobe -v error -select_streams v:0 -show_entries stream=width,height,duration -of json INPUT
master.m3u8, and emits a
faststart MP4:
"${CLAUDE_PLUGIN_ROOT}/skills/video-to-hls/scripts/transcode-hls.sh" INPUT out
# custom rungs:
"${CLAUDE_PLUGIN_ROOT}/skills/video-to-hls/scripts/transcode-hls.sh" INPUT out "720,480"
master.m3u8 path, the rendition heights produced, and the MP4.
To play locally, suggest any static server (e.g. npx serve out) with an hls.js page, or
open the MP4 directly.-pix_fmt yuv420p for H.264 web compatibility (many sources decode to a pixel
format libx264 rejects otherwise).-g 48 -keyint_min 48 -sc_threshold 0) so segment boundaries line up
across renditions — required for clean adaptive switching.-hls_time 6), a good general-purpose VOD value.For a richer CLI/library and a drag-and-drop web player, the standalone
hls-forge project does the same job with progress
bars and a typed API: npx hls-forge transcode INPUT -o out. Prefer the bundled script for
quick, dependency-free runs inside a session.
scripts/transcode-hls.sh — builds the HLS ladder + master playlist + faststart MP4.npx claudepluginhub danrigoli/claude-mediakit --plugin claude-mediakitCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.