hi i hve to add audio file to video file ...but im getting error plz help me..

조회 수: 3 (최근 30일)
my code is
videoFReader = vision.VideoFileReader('audio.avi');
[AUDIO,Fs] = wavread('audio.wav');
videoFWriter = vision.VideoFileWriter('myfile.avi');
videoFrame = step(videoFReader);
step(videoFWriter,videoFrame,AUDIO);
release(videoFReader);
release(videoFWriter);
both are different files im getting error as
Error using vision.VideoFileWriter/step
Too many input arguments; expected 1 (in addition to the object handle), got 2.
Error in ex (line 5)
step(videoFWriter,videoFrame,AUDIO);

채택된 답변

Walter Roberson
Walter Roberson 2016년 10월 10일
편집: Walter Roberson 2016년 10월 10일
Your call to vision.videoFileWriter needs to add 'AudioInputPort', true
  댓글 수: 9
Gohan
Gohan 2016년 10월 12일
Sir I'm getting video and audio only a fraction of second sir ... Only to a single frame the audio samples are added ...resultant video has only a fraction of second video with audio
Gohan
Gohan 2016년 10월 12일
Thanku so much sir I'm getting output ....

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tracking and Motion Estimation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by