distorted audio after extracion

1 view (last 30 days)
Niranjan Satam
Niranjan Satam on 27 Mar 2013
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 ?
  1 Comment
Walter Roberson
Walter Roberson on 27 Mar 2013
Where are you setting the frequency in the output file ?

Sign in to comment.

Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!