How do I add generated audio to a silent video?

19 ビュー (過去 30 日間)
Shilpa Sonawane
Shilpa Sonawane 2025 年 2 月 3 日 3:03
コメント済み: Image Analyst 2025 年 2 月 6 日 4:25
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);

採用された回答

Image Analyst
Image Analyst 2025 年 2 月 3 日 3:28
  3 件のコメント
Shilpa Sonawane
Shilpa Sonawane 2025 年 2 月 6 日 2:58
I tried the same code. But it didn't work. please guide me to resolve the problem.
Image Analyst
Image Analyst 2025 年 2 月 6 日 4:25
@Shilpa Sonawane, sorry, I haven't tried it and I don't have time. Try calling tech support.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by