How do I add generated audio to a silent video?
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Image Analyst
2025-2-3
3 个评论
Image Analyst
2025-2-6
@Shilpa Sonawane, sorry, I haven't tried it and I don't have time. Try calling tech support.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!