pub enum StreamInfo {
Video {Show 18 fields
index: i32,
time_base: AVRational,
start_time: i64,
duration: i64,
nb_frames: i64,
r_frame_rate: AVRational,
sample_aspect_ratio: AVRational,
metadata: HashMap<String, String>,
avg_frame_rate: AVRational,
codec_id: AVCodecID,
codec_name: String,
width: i32,
height: i32,
bit_rate: i64,
pixel_format: i32,
video_delay: i32,
fps: f64,
rotate: i32,
},
Audio {Show 14 fields
index: i32,
time_base: AVRational,
start_time: i64,
duration: i64,
nb_frames: i64,
metadata: HashMap<String, String>,
avg_frame_rate: AVRational,
codec_id: AVCodecID,
codec_name: String,
sample_rate: i32,
nb_channels: i32,
bit_rate: i64,
sample_format: i32,
frame_size: i32,
},
Subtitle {
index: i32,
time_base: AVRational,
start_time: i64,
duration: i64,
nb_frames: i64,
metadata: HashMap<String, String>,
codec_id: AVCodecID,
codec_name: String,
},
Data {
index: i32,
time_base: AVRational,
start_time: i64,
duration: i64,
metadata: HashMap<String, String>,
},
Attachment {
index: i32,
metadata: HashMap<String, String>,
codec_id: AVCodecID,
codec_name: String,
},
Unknown {
index: i32,
metadata: HashMap<String, String>,
},
}Variants§
Video
Video stream information
Fields
time_base: AVRationalThe time base for the stream, representing the unit of time for each frame or packet.
r_frame_rate: AVRationalThe raw frame rate (frames per second) of the video stream, represented as a rational number.
sample_aspect_ratio: AVRationalThe sample aspect ratio of the video frames, which represents the shape of individual pixels.
metadata: HashMap<String, String>Metadata associated with the video stream, such as title, language, etc.
avg_frame_rate: AVRationalThe average frame rate of the stream, potentially accounting for variable frame rates.
Audio
Audio stream information
Fields
time_base: AVRationalThe time base for the stream, representing the unit of time for each audio packet.
metadata: HashMap<String, String>Metadata associated with the audio stream, such as language, title, etc.
avg_frame_rate: AVRationalThe average frame rate of the audio stream, which might not always be applicable for audio streams.
Subtitle
Subtitle stream information
Fields
time_base: AVRationalThe time base for the stream, representing the unit of time for each subtitle event.
Data
Data stream information
Fields
time_base: AVRationalThe time base for the data stream, representing the unit of time for each data packet.
Attachment
Attachment stream information
Fields
metadata: HashMap<String, String>Metadata associated with the attachment stream, such as details about the attached file.
Unknown
Implementations§
Source§impl StreamInfo
impl StreamInfo
pub fn stream_type(&self) -> &'static str
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more