AAC Audio and VideoFileReader compatibility

1 view (last 30 days)
Joachim
Joachim on 29 Mar 2013
Hello!
I need to analyse the frames of a video along with the audio of the said frames. VideoFileReader's `step' function has worked nicely but when I try to use it with an mp4 file with AAC-encoded audio it gives weird results (the audio frames are 6 columns wide and don't really seem to represent any audio). If I convert the video to WMV things are good. If I use `audioread' the AAC-encoded audio is read fine.
Is there a way to make VideoFileReader work with AAC, and if not, what is the easiest way to analyse audio and video frame-by-frame? Converting the video each time would be highly impractical for me.
Many Thanks,
Joachim
  8 Comments
Walter Roberson
Walter Roberson on 30 Mar 2013
Hmmm... When I look at VideoFileReader it is not clear that it supports AAC audio on any system. It does support H.264 video for MPEG-4 but that is a video standard, not an audio standard, and AAC is not listed under audio for any platform.
I am not sure which tool you could use to look at the audio channel information. Possibly Windows Explorer file properties might be able to tell you, or possibly QuickTime.
Joachim
Joachim on 6 Apr 2013
Hello Walter, here's the response from Matlab support:
"
The ability to decode audio from an MP4 video file is not available in Computer Vision System Toolbox 5.2. Our development team are aware of this issue and are working on a solution for a future release.
Unfortunately there is no work-around for this issue other than to convert the video into a different format.
Having had a search on MATLAB Central I have found an entry, M4AREAD, which decodes the AAC audio from an .MP4 file using an open-source AAC decoder. This can be found at the following URL:
"
Thank you for your comments and answers!

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!