pub struct MultiFormatProber;Expand description
A stateless multi-format container prober that inspects raw byte slices.
Compared to ContainerProber (magic-byte only), MultiFormatProber
performs a shallow parse of the container structure to discover stream
count, codec, dimensions, duration, and basic metadata — all without
decoding any compressed data.
§Supported formats
| Format | Detection | Duration | Streams |
|---|---|---|---|
| MPEG-TS | ✓ | from PTS | from PMT |
| MP4/MOV | ✓ | mvhd | trak/hdlr |
| MKV/WebM | ✓ | EBML Segment/Info | TrackEntry |
| Ogg | ✓ | BOS codec | codec header |
| WAV | ✓ | fmt chunk | PCM params |
| FLAC | ✓ | STREAMINFO | sample params |
Implementations§
Source§impl MultiFormatProber
impl MultiFormatProber
Sourcepub fn probe(data: &[u8]) -> DetailedContainerInfo
pub fn probe(data: &[u8]) -> DetailedContainerInfo
Probes data and returns all available container information.
Sourcepub fn probe_streams_only(data: &[u8]) -> Vec<DetailedStreamInfo>
pub fn probe_streams_only(data: &[u8]) -> Vec<DetailedStreamInfo>
Returns only the stream list from data.
Trait Implementations§
Source§impl Debug for MultiFormatProber
impl Debug for MultiFormatProber
Source§impl Default for MultiFormatProber
impl Default for MultiFormatProber
Source§fn default() -> MultiFormatProber
fn default() -> MultiFormatProber
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiFormatProber
impl RefUnwindSafe for MultiFormatProber
impl Send for MultiFormatProber
impl Sync for MultiFormatProber
impl Unpin for MultiFormatProber
impl UnsafeUnpin for MultiFormatProber
impl UnwindSafe for MultiFormatProber
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more