pub enum FfmpegError {
FfmpegNotFound,
Io(String),
FfmpegInternal(String),
Utf8Conversion,
InvalidResolution,
Info(VideoInfoError),
}
Expand description
Various causes of failure for ffmpeg/ffprobe functions.
Variants§
FfmpegNotFound
Ffmpeg/Ffprobe command was not found. Make sure Ffmpeg is installed and can be found on the command line.
Io(String)
Io error occurred while executing Ffmpeg/Ffprobe command
FfmpegInternal(String)
Ffmpeg/Ffprobe returned a nonzero exit code. Because ffmpeg sometimes prints long error strings to stderr, The resulting string contains the first few hundred characters of the error message.
Utf8Conversion
Failed to interpret Ffmpeg/Ffprobe output as a utf8-string.
InvalidResolution
When using Ffprobe to obtain the resolution of the video file before beginning the decoding process, either the X or Y dimensions was zero. Note: This sometimes occur when attempting to decode frames from an audio file.
Info(VideoInfoError)
Failed to obtain video information.
Trait Implementations§
Source§impl Clone for FfmpegError
impl Clone for FfmpegError
Source§fn clone(&self) -> FfmpegError
fn clone(&self) -> FfmpegError
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 FfmpegError
impl Debug for FfmpegError
Source§impl<'de> Deserialize<'de> for FfmpegError
impl<'de> Deserialize<'de> for FfmpegError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FfmpegError
impl Display for FfmpegError
Source§impl Error for FfmpegError
impl Error for FfmpegError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<VideoInfoError> for FfmpegError
impl From<VideoInfoError> for FfmpegError
Source§fn from(source: VideoInfoError) -> Self
fn from(source: VideoInfoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FfmpegError
impl RefUnwindSafe for FfmpegError
impl Send for FfmpegError
impl Sync for FfmpegError
impl Unpin for FfmpegError
impl UnwindSafe for FfmpegError
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