#[non_exhaustive]pub enum CodecId {
Show 18 variants
None,
H264,
Opus,
Avif,
Png,
Jpeg,
Gif,
Webp,
Pcm,
Vorbis,
Flac,
Jxl,
Aac,
Vp9,
Mp3,
RawVideo,
Subrip,
WebVtt,
}Expand description
Identifier for a specific codec (the what, independent of any particular encoder/decoder implementation).
Marked #[non_exhaustive]: we add codecs over time, and external matchers
must handle the open-ended set.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
Sentinel for “no/unknown codec”.
H264
H.264 / AVC video.
Opus
Opus audio.
Avif
AVIF still image (an AV1 intra frame in a HEIF box).
Png
PNG still image (DEFLATE-compressed RGB/RGBA).
Jpeg
JPEG still image (a.k.a. MJPEG).
Gif
GIF image (first frame; palette-based).
Webp
WebP image (VP8 / VP8L).
Pcm
Linear PCM audio (uncompressed; layout in the stream’s sample format).
Vorbis
Vorbis audio (Ogg Vorbis).
Flac
FLAC lossless audio.
Jxl
JPEG XL image.
Aac
AAC audio (Advanced Audio Coding).
Vp9
VP9 video.
Mp3
MP3 audio (MPEG-1/2 Audio Layer III).
RawVideo
Raw uncompressed video (planar/packed pixels; layout in the stream’s
pixel format). The video analog of CodecId::Pcm.
Subrip
SubRip subtitle (.srt): plain-text cues with HH:MM:SS,mmm timing.
WebVtt
WebVTT subtitle (.vtt): plain-text cues with HH:MM:SS.mmm timing.