pub struct MediaInfo {
pub container: String,
pub video_codec: String,
pub width: u32,
pub height: u32,
pub frame_rate: f64,
pub duration: f64,
pub pixel_format: String,
pub audio: Option<AudioStreamInfo>,
}Expand description
Probed media metadata.
Fields§
§container: StringDetected container label: "mp4", "mkv", "avi", or "ts".
video_codec: StringLower-cased video codec label (e.g. "h264", "hevc", "av1").
width: u32Video width in pixels (0 if the container did not record it).
height: u32Video height in pixels (0 if the container did not record it).
frame_rate: f64Frame rate in frames per second.
duration: f64Duration in seconds (0.0 if the container did not record it).
pixel_format: StringPixel format, e.g. "Yuv420p" / "Yuv420p10le".
audio: Option<AudioStreamInfo>Audio stream metadata, if present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaInfo
impl RefUnwindSafe for MediaInfo
impl Send for MediaInfo
impl Sync for MediaInfo
impl Unpin for MediaInfo
impl UnsafeUnpin for MediaInfo
impl UnwindSafe for MediaInfo
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