pub struct Analysis { /* private fields */ }Expand description
A one-shot detection/measurement run over a single input.
Implementations§
Source§impl Analysis
impl Analysis
Sourcepub fn new(input: impl Into<Input>) -> Self
pub fn new(input: impl Into<Input>) -> Self
Starts an analysis over input (a path, URL, or anything convertible
into an Input).
Sourcepub fn video_detector(self, detector: VideoDetector) -> Self
pub fn video_detector(self, detector: VideoDetector) -> Self
Adds a video detector. At most one of each kind is allowed per run.
Sourcepub fn audio_detector(self, detector: AudioDetector) -> Self
pub fn audio_detector(self, detector: AudioDetector) -> Self
Adds an audio detector. At most one of each kind is allowed per run.
Sourcepub fn run(self) -> Result<AnalysisReport>
pub fn run(self) -> Result<AnalysisReport>
Runs the analysis to completion and folds the events into a report.
§Errors
Error::InvalidRecipeArgif no detectors are configured, a detector kind is duplicated, or a required filter / thenullmuxer is missing.- Any error bubbling up from the underlying FFmpeg run.
Auto Trait Implementations§
impl !RefUnwindSafe for Analysis
impl !Sync for Analysis
impl !UnwindSafe for Analysis
impl Freeze for Analysis
impl Send for Analysis
impl Unpin for Analysis
impl UnsafeUnpin for Analysis
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