View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
m4aread - read MPEG4 (AAC or M4A) compressed audio files

5.0 | 1 rating Rate this file 16 Downloads (last 30 days) File Size: 146 KB File ID: #28745 Version: 1.4
image thumbnail

m4aread - read MPEG4 (AAC or M4A) compressed audio files


Dan Ellis (view profile)


17 Sep 2010 (Updated )

m4aread reads m4a or aac compressed audio files just like wavread reads uncompressed audio files

| Watch this File

File Information

m4aread provides a drop-in replacement for wavread when the audio files are compressed using MPEG4 audio (AAC or M4A) format. (Protected m4p files cannot be decoded, unfortunately.)

All the work is done by the external "faad" binary, an open-source AAC decoder available for multiple platforms. Matlab File Exchange precludes posting binaries, but binaries for MACI64, GLNXA64, and Windows, can be downloaded from .

faad can extract the audio from an mp4 format video, so you can also read these files directly with m4aread.

This is based on my mp3read code.


This file inspired Audioread Unified Audio File Input Function.

MATLAB release MATLAB 7.10 (R2010a)
Other requirements Relies on external faad binary. Examples for windows, 64 bit linux and mac are available at the link above, but may not work unless properly installed for your platform.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
04 Jan 2016 Brian

Brian (view profile)

Also seems to require "resample" a function from the Signal Processing Toolbox

Comment only
06 Nov 2015 Rall Walsh

When calling wavread (with format either 'native' or 'double'), I return an error:

Invalid Wave File. Reason: Incorrect chunk size information in WAV file.

I read this file into audacity with no issues, so I don't believe there is an problem with this .m4a

Any thoughts?

Comment only
25 Sep 2013 Mario

Mario (view profile)

by the way Nezaket, the author was kind enough to upload the files you need at his site:

06 Dec 2012 Nezaket

could you please tell me what faad.exe file is for and where can i find it? the code does not work because of absence of faad.exe. i am very new to that subject.

Comment only
18 Sep 2010 1.1

No change to files, but noted in description that it can also pull audio directly from mp4 movie files.

12 Oct 2010 1.2

m4aread has been extended to support the FORCEMONO and DOWNSAMPLE flags exactly as defined for the parallel function mp3read.m.

13 Oct 2010 1.3

The code is updated to support the FORCEMONO and DOWNSAMPLE options that were introduced in mp3read.

I removed the previously-included binaries to comply with MFE policy.

09 Sep 2011 1.4

Added support for reading excerpts from very large files without excessive memory usage.

Contact us