pub struct FfmpegMetadata {
pub outputs: Vec<FfmpegOutput>,
pub output_streams: Vec<Stream>,
pub inputs: Vec<FfmpegInput>,
pub input_streams: Vec<Stream>,
/* private fields */
}
Fields§
§outputs: Vec<FfmpegOutput>
§output_streams: Vec<Stream>
§inputs: Vec<FfmpegInput>
§input_streams: Vec<Stream>
Implementations§
Source§impl FfmpegMetadata
impl FfmpegMetadata
pub fn new() -> Self
pub fn is_completed(&self) -> bool
Sourcepub fn duration(&self) -> Option<f64>
pub fn duration(&self) -> Option<f64>
A shortcut to obtain the expected duration (in seconds).
Usually this is the duration of the first input stream. Theoretically different streams could have different (or conflicting) durations, but this handles the common case.
pub fn handle_event(&mut self, item: &Option<FfmpegEvent>) -> Result<()>
Trait Implementations§
Source§impl Clone for FfmpegMetadata
impl Clone for FfmpegMetadata
Source§fn clone(&self) -> FfmpegMetadata
fn clone(&self) -> FfmpegMetadata
Returns a copy 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 FfmpegMetadata
impl Debug for FfmpegMetadata
Source§impl Default for FfmpegMetadata
impl Default for FfmpegMetadata
Source§impl PartialEq for FfmpegMetadata
impl PartialEq for FfmpegMetadata
impl StructuralPartialEq for FfmpegMetadata
Auto Trait Implementations§
impl Freeze for FfmpegMetadata
impl RefUnwindSafe for FfmpegMetadata
impl Send for FfmpegMetadata
impl Sync for FfmpegMetadata
impl Unpin for FfmpegMetadata
impl UnwindSafe for FfmpegMetadata
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