pub struct VideoProbe {
pub codec: String,
pub width: u32,
pub height: u32,
pub fps_fraction: String,
pub fps: f64,
pub duration_secs: f64,
pub bitrate_bps: u64,
pub pixel_format: String,
pub audio_codec: Option<String>,
pub audio_sample_rate: Option<u32>,
pub audio_channels: Option<u32>,
}Expand description
Video probe result from ffprobe.
Fields§
§codec: StringVideo codec name (e.g., “h264”, “hevc”, “prores”)
width: u32Width in pixels
height: u32Height in pixels
fps_fraction: StringFrame rate as a fraction (e.g., “24/1”, “30000/1001”)
fps: f64Frame rate as a float
duration_secs: f64Duration in seconds
bitrate_bps: u64Bitrate in bits per second (0 if unavailable)
pixel_format: StringPixel format (e.g., “yuv420p”)
audio_codec: Option<String>Audio codec (None if no audio stream)
audio_sample_rate: Option<u32>Audio sample rate (None if no audio stream)
audio_channels: Option<u32>Audio channels (None if no audio stream)
Trait Implementations§
Source§impl Clone for VideoProbe
impl Clone for VideoProbe
Source§fn clone(&self) -> VideoProbe
fn clone(&self) -> VideoProbe
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoProbe
impl Debug for VideoProbe
Source§impl<'de> Deserialize<'de> for VideoProbe
impl<'de> Deserialize<'de> for VideoProbe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VideoProbe
impl RefUnwindSafe for VideoProbe
impl Send for VideoProbe
impl Sync for VideoProbe
impl Unpin for VideoProbe
impl UnsafeUnpin for VideoProbe
impl UnwindSafe for VideoProbe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more