How do I add generated audio to a silent video?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Shilpa Sonawane
le 3 Fév 2025
Commenté : Image Analyst
le 6 Fév 2025
I have written following code to add generated audio into a silent video. It executes smoothly. But the audio doesn't get added into the "newvideo.avi" file.
videoFReader = vision.VideoFileReader('silent_pgwl1s.avi');
% videoFWriter = vision.VideoFileWriter('newvideo.avi','AudioInputPort',true);
videoFWriter = vision.VideoFileWriter('newvideo.avi','AudioInputPort',true);
for i=1:75
% videoFrame = step(videoFReader);
% step(videoFWriter, videoFrame,predgwo);
videoFrame= step(videoFReader);
videoFWriter(videoFrame,orgvf) ;
end
release(videoFReader);
release(videoFWriter);
0 commentaires
Réponse acceptée
Image Analyst
le 3 Fév 2025
3 commentaires
Image Analyst
le 6 Fév 2025
@Shilpa Sonawane, sorry, I haven't tried it and I don't have time. Try calling tech support.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!