#[non_exhaustive]pub enum EncodingOperationError {
SendFrameError(EncodingError),
ReceivePacketError(EncodingError),
ReceiveAudioError(EncodingError),
SubtitleNotPts,
MuxerFinished,
MuxQueueFull,
EncodeSubtitle(EncodeSubtitleError),
AllocPacket(AllocPacketError),
}Expand description
Errors from the encoder stage while turning frames into packets.
Variants carrying an EncodingError embed the mapped FFmpeg error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SendFrameError(EncodingError)
Returned when submitting a frame to the encoder fails
(avcodec_send_frame).
ReceivePacketError(EncodingError)
Returned when receiving an encoded packet from the encoder fails
(avcodec_receive_packet).
ReceiveAudioError(EncodingError)
Returned when re-chunking buffered audio samples into encoder-sized frames fails.
SubtitleNotPts
Returned when a subtitle packet reaches the encoder without a presentation timestamp.
MuxerFinished
Returned when an encoded packet cannot be delivered because the muxer has already finished.
MuxQueueFull
An output stream buffered more packets before the muxer started than the
pre-mux queue admits (fftools AVERROR_BUFFER_TOO_SMALL, “Too many
packets buffered for output stream”). Unlike MuxerFinished this is a
hard failure — never a silent truncation — so it must reach the
scheduler error, not the graceful stop path.
EncodeSubtitle(EncodeSubtitleError)
Returned when encoding a subtitle fails (see
EncodeSubtitleError).
AllocPacket(AllocPacketError)
Returned when allocating a packet for encoder output fails.
Trait Implementations§
Source§impl Debug for EncodingOperationError
impl Debug for EncodingOperationError
Source§impl Display for EncodingOperationError
impl Display for EncodingOperationError
Source§impl Error for EncodingOperationError
impl Error for EncodingOperationError
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()