Medlar/Plans/02 Engine/S012-streams.md
2026-11-25 13:57:12 -06:00

1.3 KiB

S012 — HLS, DASH, RTSP and MMS

Category 02 Engine · Model: Opus · Effort: medium · Depends on: S007, S010 · Size: M · Human: no Files touched: crates/core/src/stream/**, crates/core/tests/stream*

Goal

FEATURES 1.10, 1.11, ffmpeg runner used by media plans.

Read

  • crates/core/src/{manager,http}*
  • docs/DECISIONS.md D-011

Steps

  • ffmpeg finder and runner: argument lists only, progress parsing, cancel, log tail, missing-tool error kind
  • HLS: master and media lists, variants, audio groups, AES-128 clear-key as the list itself offers; live lists record until stopped
  • DASH: static and simple dynamic manifests, representation choice
  • Fragments in parallel with retry, resume after restart, joined without re-encoding
  • RTSP and MMS recorded through ffmpeg with stop and size or time limit
  • DRM (Widevine, FairPlay, PlayReady signals) is recognised and refused with a plain message
  • docs/PROGRESS.md entry, tick Plans/INDEX.md, commit S012: …, push

End criteria

  • nice cargo test -j 2 -p medlar-core --test stream green on fixtures made by ffmpeg
  • ffprobe shows the right duration

Pitfalls

Links go after -- or as -i values with a protocol whitelist. No DRM handling of any kind.

Handoff (→ PROGRESS.md)

Stream probe result type.