Expand description
Timed-metadata / DPI signalling conversion core.
Translates SCTE-35 splice information to and from the carriages used in OTT
delivery: HLS EXT-X-DATERANGE (RFC 8216 / draft-pantos-hls-rfc8216bis
§4.4.5.1) and DASH emsg (SCTE 214-3, scheme urn:scte:scte35:2013:bin).
Conversions are lossless: the original splice_info_section bytes are
carried verbatim (DATERANGE SCTE35-OUT hex, emsg message_data).
Pure functions live in convert; the stateful Timeline session adds a
wall-clock TimeAnchor and 33-bit PTS wrap-unrolling.
webvtt converts a different kind of timed metadata — CEA-608/708
closed captions — to WebVTT cues (W3C WebVTT + RFC 8216 §3.5
X-TIMESTAMP-MAP), feature cc-data for the CEA-608/708 extraction half.
Lossy by design (see its module docs).
Re-exports§
pub use anchor::TimeAnchor;pub use daterange::DateRange;pub use error::Error;pub use error::Result;pub use event::EventKind;pub use event::MediaDuration;pub use event::MediaTime;pub use event::SourcePayload;pub use event::TimedEvent;pub use timeline::Timeline;
Modules§
- anchor
- Media-time ↔ wall-clock mapping for conversions that cross into UTC.
- convert
- Pure conversion functions (the foundation layer).
- daterange
- HLS
EXT-X-DATERANGEmodel + (de)serialization. - error
- Crate error type.
- event
- Canonical timed-metadata event (the hub of the hub-and-spoke model).
- timeline
- Stateful conversion session: holds the wall-clock anchor and unrolls 33-bit PTS wrap across a stream of events.
- webvtt
- CEA-608/708 -> WebVTT cue conversion (issue #568).
Constants§
- PTS_HZ
- 90 kHz — the SCTE-35 / MPEG-2 PTS clock.