AAC Audio (MPEG-2 Part 7 / MPEG-4 Part 3)#

Overview#

AAC (Advanced Audio Coding) is a lossy audio compression format that provides better sound quality than MP3 at the same bit rate. It is part of the MPEG-2 and MPEG-4 standards and is widely used in streaming media, digital broadcasting, and mobile devices.

ADTS (Audio Data Transport Stream) is a streaming format for AAC audio that includes headers for each audio frame, making it suitable for streaming applications and easier error recovery. Each ADTS frame is self-contained with synchronization and configuration information.

AVBlocks provides comprehensive support for AAC encoding and decoding, allowing you to:

  • Encode uncompressed audio to AAC ADTS format

  • Decode AAC ADTS streams to uncompressed audio

  • Process audio in both streaming (push/pull) and file-based (run) modes

AAC Encoding#

AAC Decoding#