pub enum FilterError {
BuildFailed,
ProcessFailed,
InvalidConfig {
reason: String,
},
InvalidInput {
slot: usize,
reason: String,
},
Ffmpeg {
code: i32,
message: String,
},
CompositionFailed {
reason: String,
},
AnalysisFailed {
reason: String,
},
}Expand description
Errors that can occur during filter graph construction and processing.
Variants§
BuildFailed
Failed to build the filter graph (invalid filter chain or FFmpeg error
during graph creation).
ProcessFailed
A frame processing operation (push or pull) failed.
InvalidConfig
An invalid configuration was detected during graph construction.
InvalidInput
A frame was pushed to an invalid input slot.
Fields
Ffmpeg
An underlying FFmpeg function returned an error code.
CompositionFailed
A multi-track composition or mixing operation failed.
Returned by MultiTrackComposer::build and
MultiTrackAudioMixer::build when the
FFmpeg filter graph cannot be constructed.
AnalysisFailed
An analysis operation failed for a structural reason.
Returned by LoudnessMeter::measure
when the input file is not found, the format is unsupported, or the
FFmpeg filter graph cannot be constructed.
Trait Implementations§
Source§impl Debug for FilterError
impl Debug for FilterError
Source§impl Display for FilterError
impl Display for FilterError
Source§impl Error for FilterError
impl Error for FilterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()