#[non_exhaustive]pub enum Format {
Show 13 variants
MpegTs,
Isobmff,
MpegPs,
Matroska,
WebM,
Flv,
Mxf,
Wav,
Ogg,
Asf,
AdtsAac,
Mp3,
AnnexB,
}Expand description
The identified container/stream format.
Each variant maps to exactly one prober module. #[non_exhaustive] so
adding a format is a minor bump.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MpegTs
MPEG-2 Transport Stream — ISO/IEC 13818-1, 188-byte packets.
Isobmff
ISO Base Media File Format (.mp4/.mov/CMAF) — ISO/IEC 14496-12.
MpegPs
MPEG Program Stream — ISO/IEC 13818-1 §2.5.
Matroska
Matroska — EBML container.
WebM
WebM — an EBML container with DocType "webm".
Flv
FLV — Adobe Flash Video, File Format Specification v10.1.
Mxf
Material Exchange Format — SMPTE ST 377-1.
Wav
RIFF/WAVE — Microsoft WAV.
Ogg
Ogg — Xiph Ogg container.
Asf
ASF — Advanced Systems Format.
AdtsAac
Raw ADTS AAC elementary stream — ISO/IEC 13818-7.
Mp3
Raw MPEG-1/2 Layer III (MP3) elementary stream — ISO/IEC 11172-3.
AnnexB
Annex B NAL-unit byte stream — ITU-T H.264 only (HEVC is not detected; see the crate-root “Known gaps”).
Implementations§
Source§impl Format
impl Format
Sourcepub fn is_elementary_stream(&self) -> bool
pub fn is_elementary_stream(&self) -> bool
true when this format is an elementary (packetised payload) stream
that a strong container match should suppress — ADTS AAC, MP3, and
Annex B. These carry no container framing of their own and routinely
appear inside a container’s payload, so a container verdict at
LATTICE_STRONG or above must outvote them (see
suppress_elementary_streams).