Struct ffprobe::ConfigBuilder
source · pub struct ConfigBuilder { /* private fields */ }
Expand description
Build the ffprobe configuration.
Implementations§
source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
sourcepub fn count_frames(self, count_frames: bool) -> Self
pub fn count_frames(self, count_frames: bool) -> Self
Enable the -count_frames setting.
Will fully decode the file and count the frames.
Frame count will be available in Stream::nb_read_frames
.
sourcepub fn ffprobe_bin(self, ffprobe_bin: impl AsRef<Path>) -> Self
pub fn ffprobe_bin(self, ffprobe_bin: impl AsRef<Path>) -> Self
Specify which binary name (e.g. "ffprobe-6"
) or path (e.g. "/opt/bin/ffprobe"
) to use
for executing ffprobe
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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