Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
to separate video and audio from a video file

Subject: to separate video and audio from a video file

From: vaishali kumar

Date: 2 Feb, 2011 15:40:22

Message: 1 of 3

hi,
      i want to separate audio and video from a video file.I got idea that we can use video.MultimediaFileReader class. I saw one example given in matlab help center. In that they have given hoe retrieve a video from an multimedia file .Now how can i extract only audio from it and save that content and process it.Similarly i want to separate the video and process it.Can u please say me the available method or function to handle the above problem........
      

Subject: to separate video and audio from a video file

From: vaishali kumar

Date: 10 Feb, 2011 06:04:04

Message: 2 of 3

"vaishali kumar" wrote in message <iibtt6$jse$1@fred.mathworks.com>...
> hi,
> i want to separate audio and video from a video file.I got idea that we can use video.MultimediaFileReader class. I saw one example given in matlab help center. In that they have given hoe retrieve a video from an multimedia file .Now how can i extract only audio from it and save that content and process it.Similarly i want to separate the video and process it.Can u please say me the available method or function to handle the above problem........
>

hi all,
Solution for the above problem:-

%To get audio alone from the file
file='AB_original2.avi';
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);


%to get video alone from the file
file='AB_original2.avi';
file1='vipmen2.avi';
hmfr=video.MultimediaFileReader(file,'AudioOutputPort',false,'VideoOutputPort',true);
 hmfw = video.MultimediaFileWriter(file1,'AudioInputPort',false,'VideoInputPort',true);

 while ~isDone(hmfr)
  videoFrame = step(hmfr);
step(hmfw,videoFrame);
 end
close(hmfw);
close(hmfr);

Subject: plz help me regarding voice activity detection

From: karoot RAZA

Date: 24 Feb, 2011 03:48:07

Message: 3 of 3

i m doing VAD based on zero crossing rate.i have studied papers and come to know that zero crossing rate threshold is


ZCRT=mean(noise)+5*standard deviation(noise)


how can i set value of detection?how can i implement ZCR in SIMULINK?
is there any other method?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us