distorted audio after extracion

1 次查看(过去 30 天)
Niranjan Satam
Niranjan Satam 2013-3-27
file='take.avi'; %input file
file1='vipmen1.wav'; %o/p file name
hmfr=video.MultimediaFileReader(file,'AudioOutputPort',true,'VideoOutputPort',false);
hmfw = video.MultimediaFileWriter(file1,'AudioInputPort',true,'FileFormat','WAV');
while ~isDone(hmfr)
audioFrame = step(hmfr);
step(hmfw,audioFrame);
end
close(hmfw);
close(hmfr);
I am using above code to extract audio from a video. The program works correctly without errors. However the audio is slow and completely distorted sound.It is of the same length and wav format. Any ideas ?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by