#[non_exhaustive]pub enum OutputContainer {
Mp4,
FMp4,
WebM,
Mkv,
Avi,
Mov,
Flac,
Ogg,
}Expand description
Output container format for encoding.
The container format is usually auto-detected from the file extension, but can be explicitly specified if needed.
Named OutputContainer (rather than Container) to avoid confusion with
ff_format::ContainerInfo, which describes a container read from a probed file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Mp4
MP4 / QuickTime
FMp4
Fragmented MP4 — CMAF-compatible streaming container.
Uses the same mp4 FFmpeg muxer as OutputContainer::Mp4 but with
movflags=+frag_keyframe+empty_moov+default_base_moof applied before
writing the header. Required for HTTP Live Streaming fMP4 segments
(CMAF) and MPEG-DASH.
WebM
WebM
Mkv
Matroska
Avi
AVI
Mov
MOV
Flac
FLAC (lossless audio container)
Ogg
OGG (audio container for Vorbis/Opus)
Implementations§
Source§impl OutputContainer
impl OutputContainer
Sourcepub const fn default_extension(self) -> &'static str
pub const fn default_extension(self) -> &'static str
Get default file extension.
Sourcepub const fn is_fragmented(self) -> bool
pub const fn is_fragmented(self) -> bool
Returns true if this container is fragmented MP4.
When true, the encoder applies
movflags=+frag_keyframe+empty_moov+default_base_moof before writing
the file header, enabling CMAF-compatible streaming output.
Trait Implementations§
Source§impl Clone for OutputContainer
impl Clone for OutputContainer
Source§fn clone(&self) -> OutputContainer
fn clone(&self) -> OutputContainer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more