pub struct FormatInfo {
pub filename: String,
pub format_name: String,
pub format_long_name: String,
pub duration: f64,
pub size: i64,
pub bit_rate: i64,
pub probe_score: i32,
}Expand description
Container-level metadata reported by ffprobe.
Fields§
§filename: StringProbed file path.
format_name: StringShort container format name (e.g. "mov,mp4,m4a,...").
format_long_name: StringHuman-readable container format name.
duration: f64Total duration in seconds.
size: i64File size in bytes.
bit_rate: i64Overall bitrate in bits per second.
probe_score: i32ffprobe’s confidence score for the detected format.
Implementations§
Source§impl FormatInfo
impl FormatInfo
Sourcepub fn duration_secs(&self) -> Duration
pub fn duration_secs(&self) -> Duration
Container duration as a Duration.
Trait Implementations§
Source§impl Clone for FormatInfo
impl Clone for FormatInfo
Source§fn clone(&self) -> FormatInfo
fn clone(&self) -> FormatInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatInfo
impl Debug for FormatInfo
Source§impl<'de> Deserialize<'de> for FormatInfo
impl<'de> Deserialize<'de> for FormatInfo
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 FormatInfo
impl RefUnwindSafe for FormatInfo
impl Send for FormatInfo
impl Sync for FormatInfo
impl Unpin for FormatInfo
impl UnsafeUnpin for FormatInfo
impl UnwindSafe for FormatInfo
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