pub struct Ffprobe {
pub streams: Vec<Stream>,
pub format: Format,
}Expand description
Top-level ffprobe -show_format -show_streams -of json output (subset).
Fields§
§streams: Vec<Stream>§format: FormatImplementations§
Source§impl Ffprobe
impl Ffprobe
Sourcepub fn duration_sec(&self) -> Option<f64>
pub fn duration_sec(&self) -> Option<f64>
Container duration in seconds, if reported.
Sourcepub fn size_bytes(&self) -> Option<u64>
pub fn size_bytes(&self) -> Option<u64>
Container size in bytes, if reported.
Sourcepub fn video_stream(&self) -> Option<&Stream>
pub fn video_stream(&self) -> Option<&Stream>
First video stream, if any.
Sourcepub fn audio_stream(&self) -> Option<&Stream>
pub fn audio_stream(&self) -> Option<&Stream>
First audio stream, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ffprobe
impl<'de> Deserialize<'de> for Ffprobe
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 Ffprobe
impl RefUnwindSafe for Ffprobe
impl Send for Ffprobe
impl Sync for Ffprobe
impl Unpin for Ffprobe
impl UnsafeUnpin for Ffprobe
impl UnwindSafe for Ffprobe
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