Struct rsmpeg::avformat::AVFormatContextInput [−][src]
pub struct AVFormatContextInput { /* fields omitted */ }
Implementations
Create a AVFormatContextInput
instance of a file, and find info of
all streams.
Dump ffi::AVFormatContext
’s info in the “FFmpeg” way.
The index and filename here is just for info printing, it really doesn’t matter.
Return the next packet of a stream. This function returns what is stored in the file, and does not validate that what is there are valid packets for the decoder. It will split what is stored in the file into packets and return one for each call. It will not omit invalid data between valid packets so as to give the decoder the maximum information possible for decoding.
Return Err(_)
on error, Return Ok(None)
on EOF.
pub fn find_best_stream(
&self,
media_type: AVMediaType
) -> Result<Option<(usize, AVCodecRef<'static>)>>
[src]
pub fn find_best_stream(
&self,
media_type: AVMediaType
) -> Result<Option<(usize, AVCodecRef<'static>)>>
[src]Return the stream index and stream decoder if there is any “best” stream. “best” means the most likely what the user wants.
Get Iterator of all AVStream
s in the ffi::AVFormatContext
.
Get AVInputFormatRef
in the AVFormatContextInput
.
Get metadata of the ffi::AVFormatContext
in crate::avutil::AVDictionary
.
demuxing: set by libavformat in avformat_open_input()
muxing: may be set by the caller before avformat_write_header()
Trait Implementations
type Target = AVFormatContext
type Target = AVFormatContext
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for AVFormatContextInput
impl !Send for AVFormatContextInput
impl !Sync for AVFormatContextInput
impl Unpin for AVFormatContextInput
impl UnwindSafe for AVFormatContextInput