Expand description
Container traits (demuxer + muxer) and a registry.
This crate is deliberately dependency-light: it defines the abstract
Demuxer / Muxer traits that every container implementation
(oxideav-mp4, oxideav-mkv, oxideav-flac, oxideav-ogg, …) fulfils,
plus a registry::ContainerRegistry that the consumers of the
framework use to pick a demuxer by probe bytes or filename hint.
Re-exports§
pub use registry::ContainerRegistry;
Modules§
- registry
- Container registry.
Structs§
Constants§
- MAX_
PROBE_ SCORE - Maximum probe score (alias for
100). - PROBE_
SCORE_ EXTENSION - Default score returned when only the file extension matches.
Traits§
- Demuxer
- Reads a container and emits packets per stream.
- Muxer
- Writes packets into a container.
- Read
Seek - Convenience trait bundle for seekable readers.
- Write
Seek - Convenience trait bundle for seekable writers.
Type Aliases§
- Open
Demuxer Fn - Factory that tries to open a stream as a particular container format.
- Open
Muxer Fn - Factory that creates a muxer for a set of streams.
- ProbeFn
- Content-based format detection function.
- Probe
Score - Confidence score returned by a
ProbeFn.0means no match. Higher means more certain. Conventional values: