How to add audio only to a video

Asked by Radwa about 8 hours ago

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);

0 Comments

Radwa

Products

No products are associated with this question.

0 Answers

Contact us