unable to extract audio from MP4 video file

4 ビュー (過去 30 日間)
Yi
Yi 2024 年 12 月 6 日
コメント済み: Walter Roberson 2024 年 12 月 8 日
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.

回答 (1 件)

Walter Roberson
Walter Roberson 2024 年 12 月 6 日
移動済み: Walter Roberson 2024 年 12 月 6 日
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 件のコメント
Yi
Yi 2024 年 12 月 8 日
Thanks Walter. but does dsp.AudioFileReader reads video files? it doesn't mention reading video formats...
Walter Roberson
Walter Roberson 2024 年 12 月 8 日
I just checked the R2015a documentation. dsp.AudioFileReader at the time was explicitly documented as handling
  • MP3
  • M4a
  • MP4
  • WAV
  • FLAC
  • OGG

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by