pub struct MatroskaReader { /* private fields */ }Expand description
Reads Matroska and WebM files: their tracks and each track’s packets, timed as FFmpeg’s
Matroska demuxer and generic demuxing layer time them.
Timestamps are in the track’s time base, TimestampScale nanoseconds (milliseconds by
default). Decode times FFmpeg leaves unset (the first packets of a reordered H.264, HEVC or
MPEG-4 Part 2 stream) are the next packet’s decode time less the packet’s duration.
Implementations§
Source§impl MatroskaReader
impl MatroskaReader
Trait Implementations§
Source§impl ContainerReader for MatroskaReader
impl ContainerReader for MatroskaReader
Source§fn seek(&mut self, track: TrackId, pts: i64) -> Result<Option<i64>, DemuxError>
fn seek(&mut self, track: TrackId, pts: i64) -> Result<Option<i64>, DemuxError>
Positions
track so its next packet is the latest keyframe whose presentation time is at
or before pts, or its first packet when none is. Returns that keyframe’s pts; None
for a track without packets. Read moreSource§fn next_packet(&mut self, track: TrackId) -> Result<Option<Packet>, DemuxError>
fn next_packet(&mut self, track: TrackId) -> Result<Option<Packet>, DemuxError>
Source§fn default_video(&self) -> Option<usize>
fn default_video(&self) -> Option<usize>
The index into
Self::tracks of the default video track: the first enabled video
track flagged default, else the first video track.Source§fn default_audio(&self) -> Option<usize>
fn default_audio(&self) -> Option<usize>
The index into
Self::tracks of the default audio track, by the same rule.Auto Trait Implementations§
impl !RefUnwindSafe for MatroskaReader
impl !Sync for MatroskaReader
impl !UnwindSafe for MatroskaReader
impl Forget for MatroskaReader
impl Freeze for MatroskaReaderwhere
*const dyn Source is !null: Freeze,
PhantomData<dyn Source>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TrackInfo>: Freeze,
PhantomData<TrackState>: Freeze,
*const LeafNode<u64, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u64, u64)>>: Freeze,
PhantomData<(u64, u64)>: Freeze,
impl Move for MatroskaReader
impl Send for MatroskaReader
impl Unpin for MatroskaReader
impl UnsafeUnpin for MatroskaReaderwhere
*const dyn Source is !null: UnsafeUnpin,
PhantomData<dyn Source>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TrackInfo>: UnsafeUnpin,
PhantomData<TrackState>: UnsafeUnpin,
*const LeafNode<u64, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u64, u64)>>: UnsafeUnpin,
PhantomData<(u64, u64)>: UnsafeUnpin,
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