pub struct Mp4Reader { /* private fields */ }Expand description
Reads MP4, MOV and M4A files: their tracks and each track’s packets, timed as FFmpeg’s MOV
demuxer times them.
Implementations§
Trait Implementations§
Source§impl ContainerReader for Mp4Reader
impl ContainerReader for Mp4Reader
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 Mp4Reader
impl !Sync for Mp4Reader
impl !UnwindSafe for Mp4Reader
impl Forget for Mp4Reader
impl Freeze for Mp4Readerwhere
*const dyn Source is !null: Freeze,
PhantomData<dyn Source>: Freeze,
*const u8 is !null: Freeze,
PhantomData<TrackInfo>: Freeze,
PhantomData<TrackState>: Freeze,
impl Move for Mp4Reader
impl Send for Mp4Reader
impl Unpin for Mp4Reader
impl UnsafeUnpin for Mp4Readerwhere
*const dyn Source is !null: UnsafeUnpin,
PhantomData<dyn Source>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<TrackInfo>: UnsafeUnpin,
PhantomData<TrackState>: 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