필터 지우기
필터 지우기

How to add audio only to a video

조회 수: 1 (최근 30일)
Radwa
Radwa 2013년 7월 1일
I am using Vision.VideoFileWriter to write a video I need to add video frame from a file and add audio frame from another file But I always get this error Reported by vision.VideoFileWriter: Not enough input arguments; expected 2 (in addition to the object handle), got 1.
My code is the following:
while ~isDone(videofile)
[videoFrame] = step(videofile);
step(noisevideofile,videoFrame)
end
release(noisevideofile);
noisevideofile.AudioInputPort=true;
while ~isDone(noiseaudiofile)
[audio] = step(noiseaudiofile);
step(noisevideofile,audio);
end
release(videofile);
release(noiseaudiofile);
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 7월 2일
Could you also paste the code that instantiates videofile, noisevideofile and noiseaudiofile. It is not clear what System objects you are using for each.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by