How to extract audio from mp4 video file with Matlab?

51 views (last 30 days)
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.

Answers (1)

Walter Roberson
Walter Roberson on 29 Nov 2020
  2 Comments
David Winthrop
David Winthrop on 5 Dec 2020
Edited: David Winthrop on 5 Dec 2020
In case anyone else can't get this to work on MATLAM Linux, here's the fix:
Ditch MATLAB and install ffmpeg.

Sign in to comment.

Tags

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!