Enum AudioMode
- Namespace
- VisioForge.Core.Types.FFMPEGEXE
- Assembly
- VisioForge.Core.dll
Specifies the audio encoding mode for FFMPEG audio encoders.
public enum AudioModeFields
None = 0-
Default or unspecified encoding mode.
When set to None, the encoder will use its default encoding mode. This is typically CBR for most encoders but may vary depending on the specific encoder implementation.
CBR = 1-
Constant Bitrate (CBR) encoding mode.
CBR maintains a consistent bitrate throughout the entire audio stream. This results in predictable file sizes and consistent bandwidth usage, making it ideal for streaming applications. However, quality may vary as complex audio passages receive the same bitrate as simple ones.
ABR = 2-
Average Bitrate (ABR) encoding mode.
ABR allows the bitrate to vary while maintaining a target average bitrate. This provides better quality than CBR for complex audio passages while keeping file sizes predictable. It's a good compromise between CBR and VBR modes, suitable for most general-purpose applications.
Quality = 3-
Quality-based Variable Bitrate (VBR) encoding mode.
Quality mode uses variable bitrate encoding with a quality target rather than a bitrate target. The encoder allocates more bits to complex passages and fewer to simple ones, optimizing quality. File sizes are less predictable but quality is more consistent. The quality scale varies by encoder.
Lossless = 4-
Lossless encoding mode for perfect audio reproduction.
Lossless mode preserves the original audio data perfectly with no quality loss. This mode is only available for lossless codecs like FLAC, ALAC, and WavPack. File sizes are larger than lossy compression but smaller than uncompressed PCM. Ideal for audio archiving and professional production.
Remarks
Different audio encoders support different encoding modes. The choice of mode affects the balance between file size, quality, and encoding complexity. Not all modes are available for every encoder - check encoder documentation for supported modes.