필터 지우기
필터 지우기

VideoReader: audio from avi

조회 수: 2 (최근 30일)
Philipp
Philipp 2012년 10월 11일
Hello Matlab users,
do you know how to import (synchronous) audio from a video file? I use the following code to read the first 10 video frames, but is there a method to import the audio from the avi container?
readerObj = VideoReader(filename);
v = read (readerObj, [1 10]);
Best regards, Philipp

답변 (2개)

Ryan G
Ryan G 2012년 10월 11일
Have you tried:
[y,Fs] = audioread('myFile.avi');
If this doesn't work you should get the output from
info = mmfileinfo('xylophone.mpg')
audio = info.Audio
video = info.Video
and determine if the audio portion is supported from MATLAB.

Walter Roberson
Walter Roberson 2012년 10월 11일
To do this requires a quite new version of the Computer Vision Toolbox; see the class method here

카테고리

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