Table of Contents

Enum MP4AudioEncoder

Namespace
VisioForge.Core.Types.Output
Assembly
VisioForge.Core.dll

Specifies the audio encoder to use for MP4 output.

public enum MP4AudioEncoder

Fields

AAC = 0

AAC (Advanced Audio Coding) encoder - modern, efficient audio compression.

AAC is the recommended audio codec for MP4 files, providing excellent quality at lower bitrates compared to MP3. It's the standard audio codec for most modern video applications and is widely supported across all major platforms and devices.

AAC advantages:

  • Better quality than MP3 at equivalent bitrates
  • Native support in MP4 container format
  • Universal compatibility with modern devices
  • Efficient compression suitable for streaming
  • Support for multiple channels including surround sound

This is the default and recommended choice for MP4 output.

MP3_LAME = 1

MP3 encoder using LAME (LAME Ain't an MP3 Encoder) - widely compatible legacy codec.

LAME is a high-quality MP3 encoder that can be used for MP4 audio when MP3 compatibility is specifically required. While less efficient than AAC, MP3 has universal compatibility including very old devices and software.

Use MP3/LAME when:

  • Compatibility with very old devices is essential
  • Integration with legacy systems requiring MP3
  • Personal preference or specific workflow requirements

Note: Not all MP4 players support MP3 audio in MP4 containers. AAC is more universally supported in the MP4 format. MP3 is better suited for standalone audio files (.mp3) rather than video containers.

Remarks

This enumeration determines which audio codec will be used when creating MP4 files. The choice affects audio quality, file size, and compatibility with different players and devices.