unable to extract audio from MP4 video file

5 views (last 30 days)
i'm using R2015a. using the following, i receive error.
>> [y,Fs] = audioread('trialvideo.mp4')
Error using audioread (line 88)
Failed to initialize internal resources.
is there any other way to only extract audio from a MP4 video please?
thanks.

Answers (1)

Walter Roberson
Walter Roberson on 6 Dec 2024
Moved: Walter Roberson on 6 Dec 2024
If you happen to have the DSP Toolbox, then you could use dsp.AudioFileReader https://www.mathworks.com/help/dsp/ref/dsp.audiofilereader-system-object.html
  2 Comments
Yi
Yi on 8 Dec 2024
Thanks Walter. but does dsp.AudioFileReader reads video files? it doesn't mention reading video formats...
Walter Roberson
Walter Roberson on 8 Dec 2024
I just checked the R2015a documentation. dsp.AudioFileReader at the time was explicitly documented as handling
  • MP3
  • M4a
  • MP4
  • WAV
  • FLAC
  • OGG

Sign in to comment.

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!