Where are you setting the frequency in the output file ?
distorted audio after extracion
1 次查看(过去 30 天)
显示 更早的评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!