필터 지우기
필터 지우기

avi audio plot

조회 수: 1 (최근 30일)
Max
Max 2011년 10월 11일
i have an .avi video...i need to plot the audio of it.. in simple i need to analyse the audio of an .avi video... please suggest a method for it... i have tried all sort of searches and unable to get it done

채택된 답변

Wayne King
Wayne King 2011년 10월 11일
I'm going to assume that you mean the Signal Processing Blockset, since the DSP System Toolbox did not exist in R2010a.
In R2010a with SP blockset, you can use the System object signalblks.MultimediaFileReader.
For example:
filename = 'youravifile.avi';
hmfr = signalblks.MultimediaFileReader(filename,...
'AudioOutputPort',true,'VideoOutputPort',false);
while ~isDone(hfmr)
audio = step(hfmr);
end
Every time step is called audio contains one frame of the audio. In the above, the next frame is overwriting the previous one, but you can save the audio frames or directly write them to a file with signalblks.MultiMediaFileWriter
  댓글 수: 1
Max
Max 2011년 10월 12일
thank you wayne... it worked so well... i thank you sincerely...

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

추가 답변 (2개)

Wayne King
Wayne King 2011년 10월 11일
Hi Max, what version of MATLAB are you using? Depending on what version of MATLAB you are running and which products you have access to, there are System objects you can use to read in an .avi file and separate the video and audio content.
Do you have a recent version of MATLAB with the Computer Vision System Toolbox, DSP System Toolbox, or their prior versions - VIP blockset, or SP blockset?

Max
Max 2011년 10월 11일
i am using matlab R2010a version of matlab...yes i do have dsp system toolbox

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by