Skip to main content

Module error

Module error 

Source
Expand description

Error handling: the crate-wide Error enum, the Result alias every API returns, and typed sub-errors for specific subsystems.

Re-exports§

pub use crate::core::writer::WriterError;

Enums§

AllocFrameError
Errors from allocating an AVFrame.
AllocOutputContextError
Errors from allocating an output format context (avformat_alloc_output_context2).
AllocPacketError
Errors from allocating an AVPacket.
ContainerInfoError
Errors from the container_info queries where the caller asked for an index outside the container’s range. These are caller/argument errors — a bad index into an otherwise valid container — kept distinct from an open/probe failure (OpenInputError / FindStreamError) so retry logic, telemetry, and user messages can tell “you asked for chapter 5 of a 3-chapter file” apart from “the file is corrupt or unreadable”. Each variant carries the offending index and the container’s actual count.
DecoderError
Errors from resolving a decoder.
DecodingError
FFmpeg-level errors during decoding, carried by DecodingOperationError.
DecodingOperationError
Errors from the decoder stage while turning packets into frames. Variants carrying a DecodingError embed the mapped FFmpeg error.
DemuxingError
FFmpeg-level errors during demuxing, carried by DemuxingOperationError and PacketScannerError.
DemuxingOperationError
Errors from the demuxer stage while reading packets from an input. Variants carrying a DemuxingError embed the mapped FFmpeg error.
EncodeSubtitleError
Errors from encoding a subtitle (avcodec_encode_subtitle).
EncodingError
FFmpeg-level errors during encoding, carried by EncodingOperationError.
EncodingOperationError
Errors from the encoder stage while turning frames into packets. Variants carrying an EncodingError embed the mapped FFmpeg error.
Error
Top-level error type for all ez-ffmpeg operations.
FilterGraphError
FFmpeg-level errors during filtergraph processing, carried by FilterGraphOperationError.
FilterGraphOperationError
Errors from running frames through a configured filtergraph. Variants carrying a FilterGraphError embed the mapped FFmpeg error.
FilterGraphParseError
Errors from parsing a filtergraph description and wiring its inputs and outputs.
FindDevicesError
Errors from enumerating capture devices (cameras, microphones, screens).
FindStreamError
Errors from probing stream information after an input is opened (avformat_find_stream_info).
FrameWritableError
Errors from make_frame_writable, the safe wrapper over FFmpeg’s av_frame_make_writable: ensuring exclusive ownership of a frame’s data buffers may allocate new buffers and copy into them, and that underlying call can fail. Common AVERROR codes map to named variants; anything else carries the raw code.
MuxingError
FFmpeg-level errors during muxing, carried by MuxingOperationError.
MuxingOperationError
Errors from the muxer stage while writing the output container. Variants carrying a MuxingError embed the mapped FFmpeg error.
OpenDecoderError
FFmpeg-level errors while opening a decoder, carried by OpenDecoderOperationError.
OpenDecoderOperationError
Errors from opening and configuring a decoder. Variants carrying an OpenDecoderError embed the mapped FFmpeg error.
OpenEncoderError
FFmpeg-level errors while opening an encoder, carried by OpenEncoderOperationError.
OpenEncoderOperationError
Errors from opening and configuring an encoder. Variants carrying an OpenEncoderError embed the mapped FFmpeg error.
OpenInputError
Errors from opening an input file, stream, device, or custom input source. Most variants are mapped from the FFmpeg error code returned by avformat_open_input.
OpenOutputError
Errors from opening and configuring an output: resolving formats and encoders, mapping streams, validating options, and opening the target for writing.
PacketScannerError
Errors that can occur during packet scanning operations.
PacketSinkError
Errors specific to packet-sink outputs (Output::new_by_packet_sink).
StreamError
Error type for RTMP streaming operations using StreamBuilder
UrlError
Errors from converting URL or path strings for FFmpeg.
WriteHeaderError
Errors from writing the output container header (avformat_write_header), carried by MuxingOperationError::WriteHeader.

Type Aliases§

Result
Result type of all ez-ffmpeg library calls.