フィルターのクリア

How to extract audio from MP4?

79 ビュー (過去 30 日間)
keshav poojari
keshav poojari 2018 年 12 月 26 日
編集済み: Hengameh Noshahri 2020 年 11 月 29 日
I used R2013a version. can i extract audio from MP4 video files?

回答 (2 件)

Hengameh Noshahri
Hengameh Noshahri 2020 年 10 月 26 日
編集済み: Hengameh Noshahri 2020 年 11 月 29 日
Try this:
[y,Fs] = audioread(filename);
audiowrite('outputfile.WAV',y,Fs);
File formats of .avi and .MOV are not mentioned among the accepted input file formats of audioread's documentation ( https://www.mathworks.com/help/matlab/ref/audioread.html#btiabil-1-dataType ), but I tried them in R2020 and they work with this code.
  3 件のコメント
David Winthrop
David Winthrop 2020 年 11 月 29 日
This does not work in r2018a:
>> [input_file, Fs] = audioread('2020-11-28 13-44-42.mp4','native');
Error using audioread (line 88)
The file type is not supported
Walter Roberson
Walter Roberson 2020 年 11 月 29 日
R2018a documents .mp4 support; https://www.mathworks.com/help/releases/R2018a/matlab/ref/audioread.html -- though you might need to install a codec package .

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


madhan ravi
madhan ravi 2018 年 12 月 26 日
  1 件のコメント
keshav poojari
keshav poojari 2018 年 12 月 26 日
sir, can you give me any examples please?

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by