Skip to main content

Crate sheathe_package

Crate sheathe_package 

Source
Expand description

End-to-end packaging pipeline for the sheathe packager.

package takes one or more input media files (MP4, MPEG-TS, WebM/Matroska, raw elementary streams, WebVTT/TTML) and writes CMAF init + media segments plus DASH and/or HLS manifests into an output directory — the library form of the sheathe package CLI command.

Multiple inputs form an ABR ladder by default (each input’s track(s) become separate renditions sharing one period). With PackageOptions::multi_period each input becomes a successive DASH Period instead.

Phase 4 (live & advanced manifests) is controlled via PresentationMode, live window size, trick-play, low-latency parts, and SCTE-35 markers.

Phase 5 adds on-demand single-file DASH, packed-audio / MPEG-TS HLS, IO backends, JIT origin, and multi-track parallelism.

Re-exports§

pub use io::FileSink;
pub use io::HttpPushSink;
pub use io::ObjectSink;
pub use io::read_input;
pub use origin::OriginConfig;
pub use origin::serve as serve_origin;

Modules§

io
Output sinks and input sources for packaging (Phase 5 IO backends).
origin
JIT / origin mode — package on HTTP request (Phase 5).

Structs§

EncryptionSpec
Raw-key content encryption for a package run.
PackageOptions
Options controlling a package run.
PackageOutput
What a package run produced.
ProbeReport
Result of probe: the detected container and its streams.
ProbeStream
One stream discovered by probe.
Scte35Marker
A SCTE-35 cue placement relative to the presentation timeline.

Enums§

DrmSystem
A DRM protection system a pssh box can be generated for.
EncScheme
A CENC protection scheme (the schm scheme_type).
PresentationMode
How the presentation should be signalled in DASH/HLS manifests.
SegmentFormat
Container / segment format for packaged media.

Functions§

build_splice_insert
Build a binary SCTE-35 splice_info_section for marker.
describe
One-line human description of a stream (re-exported for CLI/probe use).
package
Package one or more inputs into CMAF segments + DASH and/or HLS manifests under opts.out_dir.
probe
Inspect an input and report the container + streams sheathe detects, without writing anything. The library form of the sheathe probe CLI command.
scheme_str
Human-readable name for a Scheme (matches the CLI/DASH spelling).
to_base64
Standard base64 (no padding strip) for DASH Event message data.
to_hex_0x
Hex encoding with a 0x prefix (HLS SCTE35-OUT style).