Feature Flags
By default, Symphonia only enables royalty-free open standard formats. Additional formats can be enabled using feature flags in yourCargo.toml:
Supported Formats
The following table shows all supported container formats, their development status, gapless playback support, and associated feature flags: | Format | Status | Gapless* | Feature Flag | Default | Crate | |----------|-----------|----------|--------------|---------|-----------------------------|| | AIFF | Great | Yes |aiff | No | symphonia-format-riff |
| CAF | Good | No | caf | No | symphonia-format-caf |
| ISO/MP4 | Great | No | isomp4 | No | symphonia-format-isomp4 |
| MKV/WebM | Good | No | mkv | Yes | symphonia-format-mkv |
| OGG | Great | Yes | ogg | Yes | symphonia-format-ogg |
| Wave | Excellent | Yes | wav | Yes | symphonia-format-riff |
* Gapless playback requires support from both the demuxer and decoder.
Status Classifications
Excellent
Excellent
All media streams play. No audible or inaudible glitches. All required features are supported.This status is only assigned after passing all compliance tests, or if Symphonia’s output matches a reference implementation over a large test corpus.
Great
Great
Most media streams play. Inaudible glitches may be present. Most common features are supported.This status indicates that major development is complete and the feature is acceptable for most applications.
Good
Good
Many media streams play. Some streams may panic, error, or produce audible glitches. Some features may not be supported.This status indicates active development or known limitations.
Format Details
AIFF (Audio Interchange File Format)
- Status: Great
- Gapless: Yes
- Crate:
symphonia-format-riff - Common file extensions:
.aiff,.aif - Widely used on Apple platforms
- Supports uncompressed PCM and compressed audio
CAF (Core Audio Format)
- Status: Good
- Gapless: No
- Crate:
symphonia-format-caf - Common file extension:
.caf - Apple’s modern container format
- Designed to overcome limitations of older formats
ISO/MP4
- Status: Great
- Gapless: No
- Crate:
symphonia-format-isomp4 - Common file extensions:
.mp4,.m4a,.m4b,.m4p - Industry standard for AAC audio
- Based on ISO Base Media File Format
MKV/WebM
- Status: Good
- Gapless: No
- Crate:
symphonia-format-mkv - Common file extensions:
.mkv,.mka,.webm - Flexible, open-source container format
- Enabled by default
OGG
- Status: Great
- Gapless: Yes
- Crate:
symphonia-format-ogg - Common file extensions:
.ogg,.oga - Free, open container format
- Commonly used with Vorbis and Opus codecs
- Enabled by default
Wave (WAV)
- Status: Excellent
- Gapless: Yes
- Crate:
symphonia-format-riff - Common file extensions:
.wav,.wave - Microsoft/IBM audio format
- Most commonly contains uncompressed PCM
- Enabled by default
Gapless Playback
Gapless playback eliminates silence or gaps between tracks during continuous playback. This feature requires support from both the container format (demuxer) and the audio codec (decoder). Formats with gapless support:- AIFF (with compatible codecs)
- OGG (with Vorbis, Opus)
- Wave (with compatible codecs)
Even if a format supports gapless playback, the codec must also support it. See Supported Codecs for codec-specific gapless support.