pub enum ContainerFormat {
Mp4,
Fmp4,
MpegTs,
MpegAudio,
Adts,
Flac,
Wav,
Ogg,
Caf,
Mkv,
}Expand description
Container format type.
Variants§
Mp4
Standard MP4 (ISO/IEC 14496-12)
Fmp4
Fragmented MP4 (fMP4) - common for HLS
MpegTs
MPEG Transport Stream
MpegAudio
MPEG Audio (MP3 without container)
Adts
AAC ADTS (raw AAC with ADTS framing)
Flac
FLAC (native FLAC stream)
Wav
RIFF WAVE
Ogg
Ogg container
Caf
CAF (Core Audio Format)
Mkv
Matroska/WebM
Trait Implementations§
Source§impl Clone for ContainerFormat
impl Clone for ContainerFormat
Source§fn clone(&self) -> ContainerFormat
fn clone(&self) -> ContainerFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContainerFormat
impl Debug for ContainerFormat
Source§impl PartialEq for ContainerFormat
impl PartialEq for ContainerFormat
Source§fn eq(&self, other: &ContainerFormat) -> bool
fn eq(&self, other: &ContainerFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<AudioCodec> for ContainerFormat
The codec uniquely picks a container for standalone sources.
Mp3→MpegAudio, Pcm→Wav, Flac→Flac, Vorbis/Opus→Ogg, Alac→Caf.
AAC (ADTS vs Mp4) and Adpcm are ambiguous and fail.
impl TryFrom<AudioCodec> for ContainerFormat
The codec uniquely picks a container for standalone sources. Mp3→MpegAudio, Pcm→Wav, Flac→Flac, Vorbis/Opus→Ogg, Alac→Caf. AAC (ADTS vs Mp4) and Adpcm are ambiguous and fail.
impl Copy for ContainerFormat
impl Eq for ContainerFormat
impl StructuralPartialEq for ContainerFormat
Auto Trait Implementations§
impl Freeze for ContainerFormat
impl RefUnwindSafe for ContainerFormat
impl Send for ContainerFormat
impl Sync for ContainerFormat
impl Unpin for ContainerFormat
impl UnsafeUnpin for ContainerFormat
impl UnwindSafe for ContainerFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more