pub struct Video { /* private fields */ }
Expand description
Represents a video file on disk.
Implementations§
Source§impl Video
impl Video
Sourcepub fn file_stem(&self) -> &OsStr
pub fn file_stem(&self) -> &OsStr
Get just the file stem of this video file, stripped of any extensions.
Sourcepub fn audio_for(&self, lang: Lang) -> Option<usize>
pub fn audio_for(&self, lang: Lang) -> Option<usize>
Choose the best audio for the specified language.
Sourcepub fn extract(&self, extractions: &[Extraction]) -> Result<()>
pub fn extract(&self, extractions: &[Extraction]) -> Result<()>
Perform a list of extractions as efficiently as possible. We use a batch interface to avoid making too many passes through the file. We assume that the extractions are sorted in temporal order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Video
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnwindSafe for Video
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