How to extract audio from MP4?

119 visualizaciones (últimos 30 días)
keshav poojari
keshav poojari el 26 de Dic. de 2018
Editada: Hengameh Noshahri el 29 de Nov. de 2020
I used R2013a version. can i extract audio from MP4 video files?

Respuestas (2)

Hengameh Noshahri
Hengameh Noshahri el 26 de Oct. de 2020
Editada: Hengameh Noshahri el 29 de Nov. de 2020
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 comentarios
David Winthrop
David Winthrop el 29 de Nov. de 2020
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 el 29 de Nov. de 2020
R2018a documents .mp4 support; https://www.mathworks.com/help/releases/R2018a/matlab/ref/audioread.html -- though you might need to install a codec package .

Iniciar sesión para comentar.


madhan ravi
madhan ravi el 26 de Dic. de 2018
  1 comentario
keshav poojari
keshav poojari el 26 de Dic. de 2018
sir, can you give me any examples please?

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by