필터 지우기
필터 지우기

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 CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by