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);
0 个评论
采纳的回答
Walter Roberson
2016-10-10
编辑:Walter Roberson
2016-10-10
Your call to vision.videoFileWriter needs to add 'AudioInputPort', true
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Spatial Audio 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!