#[non_exhaustive]pub enum Error {
Ffmpeg(String),
NoEncoder(String),
NoCaptureBackend(&'static str),
NoVideoStream(String),
InvalidFramerate(u32),
Codec(Error),
Moq(Error),
TimeOverflow(TimeOverflow),
}Expand description
Errors returned by moq-video.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ffmpeg(String)
libav* (capture, scaling, or codec) failure.
Carries the formatted message rather than the typed ffmpeg_next::Error
on purpose: keeping ffmpeg out of the public surface means an
ffmpeg-next major bump isn’t a breaking change for consumers.
NoEncoder(String)
No encoder matching the requested codec / hardware preference was compiled into the linked ffmpeg.
NoCaptureBackend(&'static str)
The requested input format (avfoundation / v4l2 / dshow) is not available in the linked libavdevice.
NoVideoStream(String)
The opened capture device exposed no decodable video stream.
InvalidFramerate(u32)
The configured framerate was zero (would divide by zero / produce a degenerate codec time base).
Codec(Error)
moq-mux codec/transport error (H.264 import, catalog).
Moq(Error)
moq-net transport error.
TimeOverflow(TimeOverflow)
Timestamp overflow converting to the moq microsecond timescale.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()