AAC Audio (MPEG-2 Part 7 / MPEG-4 Part 3)
Contents
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 ADTS Encoder (Run) - Encode a WAV file to AAC ADTS using
Transcoder::runAAC ADTS Encoder (Pull) - Encode a WAV file to AAC ADTS using
Transcoder::pullAAC ADTS Encoder (Push) - Encode raw audio frames to AAC ADTS using
Transcoder::push
AAC Decoding#
AAC ADTS Decoder (Run) - Decode an AAC ADTS file to uncompressed WAV using
Transcoder::runAAC ADTS Decoder (Pull) - Decode an AAC ADTS stream to raw audio frames using
Transcoder::pull