AAC Audio and VideoFileReader compatibility

1 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2013-3-30
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 2013-4-6
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!

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by