Can I add an audio stream to a movie?

조회 수: 8 (최근 30일)
Marcelo
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?
Thx

답변 (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 CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by