pub struct Ffmpeg {
pub path: PathBuf,
pub ffprobe: Option<PathBuf>,
pub version: String,
pub encoders: Vec<Listed>,
pub decoders: Vec<Listed>,
pub hwaccels: Vec<String>,
}Fields§
§path: PathBuf§ffprobe: Option<PathBuf>§version: String§encoders: Vec<Listed>§decoders: Vec<Listed>§hwaccels: Vec<String>Implementations§
Source§impl Ffmpeg
impl Ffmpeg
pub fn find(user: Option<&Path>) -> Result<Ffmpeg>
pub fn can(&self, codec: Codec, dir: Direction) -> bool
pub fn encoder_for(&self, codec: Codec, picked: Option<&str>) -> Option<String>
pub fn decoder_args(&self, picked: Option<&str>) -> Vec<String>
pub fn command(&self) -> Command
pub fn run(&self, args: &[&str]) -> Result<Vec<u8>>
pub fn run_args(&self, args: &[String]) -> Result<Vec<u8>>
pub fn probe_flat( &self, args: &[&str], path: &Path, ) -> Result<BTreeMap<String, String>>
pub fn probe_csv(&self, args: &[&str], path: &Path) -> Result<String>
pub fn spawn(&self, args: &[String], stdin: bool, stdout: bool) -> Result<Child>
Trait Implementations§
impl Eq for Ffmpeg
impl StructuralPartialEq for Ffmpeg
Auto Trait Implementations§
impl Freeze for Ffmpeg
impl RefUnwindSafe for Ffmpeg
impl Send for Ffmpeg
impl Sync for Ffmpeg
impl Unpin for Ffmpeg
impl UnsafeUnpin for Ffmpeg
impl UnwindSafe for Ffmpeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more