hi i hve to add audio file to video file ...but im getting error plz help me..
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 10 Oct 2016
Modifié(e) : Walter Roberson
le 10 Oct 2016
Your call to vision.videoFileWriter needs to add 'AudioInputPort', true
9 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Tracking and Motion Estimation dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!