#[non_exhaustive]pub enum HlsEncoderSelectionError {
HistoricalDefaultUnavailable {
registered_auto_candidates: Vec<String>,
registered_explicit_h264_encoders: Vec<String>,
},
AutoSelectionFailed {
attempts: Vec<HlsEncoderAttempt>,
},
ExplicitOpenFailed {
encoder: String,
width: u32,
height: u32,
raw_code: i32,
message: String,
},
}Expand description
Failure to select a video encoder for crate::recipes::HlsLadder.
The historical default (libx264) is never silently replaced. Callers
either get this typed error or opt in with
HlsLadder::video_codec_auto.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
HlsLadder was left on its historical
libx264 default, and that encoder is not registered in the linked
FFmpeg build. No fallback was selected.
AutoSelectionFailed
HlsLadder::video_codec_auto
ran after libx264 was unavailable and no candidate could be opened
for every rendition.
Fields
attempts: Vec<HlsEncoderAttempt>One entry per auto-priority encoder, in selection order.
ExplicitOpenFailed
A pinned auto-admitted encoder (.video_codec("h264_qsv") and the
other AUTO_PRIORITY names) failed trial-open (rungs are opened one by
one; all sessions are held concurrently to prove the ladder’s session
count). No other encoder was tried, and output directories were not
created.
Trait Implementations§
Source§impl Clone for HlsEncoderSelectionError
impl Clone for HlsEncoderSelectionError
Source§fn clone(&self) -> HlsEncoderSelectionError
fn clone(&self) -> HlsEncoderSelectionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HlsEncoderSelectionError
impl Debug for HlsEncoderSelectionError
Source§impl Display for HlsEncoderSelectionError
impl Display for HlsEncoderSelectionError
Source§impl Error for HlsEncoderSelectionError
impl Error for HlsEncoderSelectionError
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()