pub struct MediaInfo {Show 13 fields
pub path: PathBuf,
pub kind: MediaKind,
pub duration_sec: f64,
pub size_bytes: u64,
pub width: Option<u32>,
pub height: Option<u32>,
pub fps: Option<f64>,
pub video_codec: Option<String>,
pub audio_codec: Option<String>,
pub audio_channels: Option<u32>,
pub audio_bitrate_bps: Option<u64>,
pub capture: CaptureMeta,
pub hdr: Option<Hdr>,
}Expand description
Source file metadata — the result of Engine::probe.
Fields§
§path: PathBuf§kind: MediaKind§duration_sec: f64§size_bytes: u64§width: Option<u32>§height: Option<u32>§fps: Option<f64>§video_codec: Option<String>§audio_codec: Option<String>§audio_channels: Option<u32>§audio_bitrate_bps: Option<u64>Bit rate of the (first) audio stream in bits/s, when the probe reports it — the ceiling for re-encoding a video’s audio track.
capture: CaptureMetaWhen / where / with what it was shot (container tags), carried over to the output when metadata is kept.
hdr: Option<Hdr>The video is HDR (HLG or PQ transfer), None for SDR / unknown / audio.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MediaInfo
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