Skip to main content

Crate sheathe_core

Crate sheathe_core 

Source
Expand description

Core media model for the sheathe packager.

This crate plays the role of Shaka Packager’s media/base: the format-agnostic abstractions every other crate is built on — elementary streams, samples, timing, and the shared error type. It deliberately knows nothing about MP4, DASH, or HLS; those live in sheathe-mp4, sheathe-dash, and sheathe-hls.

Structs§

Sample
One coded sample: its bytes plus the timing the muxer needs.
SampleFlags
Per-sample flags relevant to fragmentation and segment boundaries.
Scaled
A value (timestamp or duration) paired with the Timescale it lives in.
StreamInfo
Everything the packager needs to know about one elementary stream.
Timescale
Ticks-per-second for a stream’s timeline (e.g. 90_000 for MPEG-TS video).

Enums§

Codec
The codec carried by a stream. The string in Codec::Other is a best-effort fourcc/codec id for formats not yet first-classed.
Error
Errors produced while parsing, packaging, or muxing media.
MediaKind
The broad category of an elementary stream.

Type Aliases§

Result
Convenient alias used throughout the sheathe crates.