Skip to main content

Crate timed_metadata

Crate timed_metadata 

Source
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.

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-DATERANGE model + (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.

Constants§

PTS_HZ
90 kHz — the SCTE-35 / MPEG-2 PTS clock.