pub struct Demuxer<T> { /* private fields */ }
Expand description
Demuxer.
Implementations§
source§impl<T> Demuxer<T>
impl<T> Demuxer<T>
sourcepub fn set_option<V>(&mut self, name: &str, value: V) -> Result<(), Error>where
V: ToString,
pub fn set_option<V>(&mut self, name: &str, value: V) -> Result<(), Error>where
V: ToString,
Set an option.
sourcepub fn take(&mut self) -> Result<Option<Packet>, Error>
pub fn take(&mut self) -> Result<Option<Packet>, Error>
Take the next packet from the demuxer or None
on EOF.
sourcepub fn seek_to_timestamp(
&self,
timestamp: Timestamp,
seek_target: SeekTarget
) -> Result<(), Error>
pub fn seek_to_timestamp(
&self,
timestamp: Timestamp,
seek_target: SeekTarget
) -> Result<(), Error>
Seek to a specific timestamp in the stream.
sourcepub fn seek_to_frame(
&self,
frame: u64,
seek_target: SeekTarget
) -> Result<(), Error>
pub fn seek_to_frame(
&self,
frame: u64,
seek_target: SeekTarget
) -> Result<(), Error>
Seek to a specific frame in the stream.
sourcepub fn seek_to_byte(&self, offset: u64) -> Result<(), Error>
pub fn seek_to_byte(&self, offset: u64) -> Result<(), Error>
Seek to a specific byte offset in the stream.
sourcepub fn find_stream_info(
self,
max_analyze_duration: Option<Duration>
) -> Result<DemuxerWithStreamInfo<T>, (Self, Error)>
pub fn find_stream_info(
self,
max_analyze_duration: Option<Duration>
) -> Result<DemuxerWithStreamInfo<T>, (Self, Error)>
Try to find stream info. Optionally, you can pass max_analyze_duration
which tells FFmpeg
how far it should look for stream info.
Trait Implementations§
source§impl<T> AsMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> AsMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
source§impl<T> AsRef<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> AsRef<Demuxer<T>> for DemuxerWithStreamInfo<T>
source§impl<T> Borrow<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> Borrow<Demuxer<T>> for DemuxerWithStreamInfo<T>
source§impl<T> BorrowMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> BorrowMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
source§fn borrow_mut(&mut self) -> &mut Demuxer<T>
fn borrow_mut(&mut self) -> &mut Demuxer<T>
Mutably borrows from an owned value. Read more