Generate HLS I-frame (trick-play) playlists with ffmpeg for fast-forward and rewind

domain: ffmpeg · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Encode the source with a strict closed-GOP structure so every segment starts with an IDR frame; use -force_key_frames 'expr:gte(t,n_forced*SEG_DURATION)' to enforce keyframe placement
  2. Pass the -hls_flags iframes_only flag to the ffmpeg HLS muxer to produce an I-frame-only playlist that uses EXT-X-BYTERANGE to reference individual I-frames within segments
  3. In the multivariant playlist, add an EXT-X-I-FRAME-STREAM-INF tag for each I-frame playlist, specifying BANDWIDTH, CODECS, RESOLUTION, and URI
  4. Set EXT-X-VERSION to at least 4 in the I-frame playlist as required by the spec
  5. Test trick-play behavior in AVPlayer on iOS (which uses I-frame playlists natively for scrubbing) and verify that fast-forward speeds display correct frames

Known gotchas

Related routes

Configure Low-Latency HLS with partial segments and blocking playlist reload
hls · 5 steps · unrated
Package video for HLS delivery using ffmpeg
ffmpeg.org · 6 steps · unrated
Build an ffmpeg ABR encoding ladder for HLS delivery
ffmpeg · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans