Can I add an audio stream to a movie?

23 ビュー (過去 30 日間)
Marcelo 2021 年 8 月 25 日
回答済み: Kshitij Chhabra 2021 年 9 月 2 日
VideoWriter does not seem to have a method allowing me to include a soundtrack in the resulting movie. I want to create a movie that has both video and audio data.
Is there any way to add an audio stream to a VideoWriter object?

回答 (1 件)

Kshitij Chhabra
Kshitij Chhabra 2021 年 9 月 2 日
Hi Marcelo, VideoWriter is great for creating video files, Howerver, adding audio streams is currently not supported through it in MATLAB. Alternatively, you can "vision.VideoFileWriter" object which is available in the Computer Vision System and can be used to write both audio and video to AVI and WMV files.


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