pub struct Stream {Show 13 fields
pub id: Option<String>,
pub index: u64,
pub disposition: Disposition,
pub avg_frame_rate: Ratio,
pub codec_tag: Vec<u8>,
pub time_base: Ratio,
pub start_pts: i64,
pub side_data_list: Vec<SideData>,
pub extradata_size: Option<i64>,
pub r_frame_rate: Ratio,
pub nb_frames: Option<i64>,
pub nb_read_frames: Option<i64>,
pub stream: StreamKinds,
}Expand description
Stream parsed
Fields§
§id: Option<String>The identifier of the stream, if available.
index: u64§disposition: DispositionDisposition flags indicating various properties of the stream.
avg_frame_rate: RatioThe average frame rate of the stream.
codec_tag: Vec<u8>The codec_tag field represents a numeric identifier associated with the codec used in the stream. It is often an integer value assigned to a specific codec format, allowing programs to quickly identify the codec type without needing to parse through codec-specific headers extensively. These tags are usually defined by standards organizations or codec developers. For example, in the context of video codecs, a codec tag might represent the codec used for encoding the video stream, such as H.264 (codec tag 0x21) or MPEG-4 Visual (codec tag 0x20).
time_base: RatioThe time base of the stream. eg. 1/1000
start_pts: i64The start presentation timestamp (PTS) of the stream. ptr * timebase = start in seconds
side_data_list: Vec<SideData>A list of side data associated with the stream.
extradata_size: Option<i64>The size of the extra data associated with the stream, if available.
r_frame_rate: RatioThe real frame rate of the stream.
nb_frames: Option<i64>The total number of frames in the stream, if available.
nb_read_frames: Option<i64>Number of frames seen by the decoder. Requires full decoding and is only available if the ‘count_frames’ setting was enabled.
stream: StreamKinds