How to extract audio from mp4 video file with Matlab?
19 views (last 30 days)
Show older comments
I have a video file and I want to extract the video and audio into separate objects for writing to disk separately. I know how to deal with the video, but the audio is not so simple, it seems. This does not work, so is there another approach to solving this problem?
>> [input_file, Fs] = audioread('Home_Made_Video.mp4','native');
Error using audioread (line 88)
The file type is not supported
Any hints would be appreciated.
0 Comments
Answers (1)
Walter Roberson
on 29 Nov 2020
or use audioread without 'native'
provided you are using Windows 7 or later.
You might have to install a codec package; https://www.mathworks.com/matlabcentral/answers/218237-unable-to-determine-the-codec-required#answer_428005
2 Comments
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!