필터 지우기
필터 지우기

How to extract audio from mp4 video file with Matlab?

조회 수: 14 (최근 30일)
David Winthrop
David Winthrop 2020년 11월 29일
편집: David Winthrop 2020년 12월 5일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 11월 29일
  댓글 수: 2
David Winthrop
David Winthrop 2020년 11월 29일
I did try to call audioread without native before adding that option.
I am on linux if it makes any difference.
>> VideoFreader=vision.VideoFileReader('Home_Made_Video.mp4');
Error using vision.VideoFileReader
Invalid input file.
David Winthrop
David Winthrop 2020년 12월 5일
편집: David Winthrop 2020년 12월 5일
In case anyone else can't get this to work on MATLAM Linux, here's the fix:
Ditch MATLAB and install ffmpeg.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by