필터 지우기
필터 지우기

Problem adding audio to video file

조회 수: 1 (최근 30일)
mako
mako 2014년 6월 8일
Hi, I am counting cars in a video and I am trying to make a sound each time I count one of the cars. In each video frame loop, I mark the cars with a 3x3 blue zone and add the frame to video, but it is not clear to me how to add the sound to the frame.
I am working with vision.VideoFileReader and vision.VideoFileWriter since those are the ones that allow me to make the video with audio.
I have read the help and googled a lot, but I still cant' find out how to add the audio.
If I go to the properties of the created video, it shows that there is no audio sample rate.
In addition, I can have the audio written to wav file, but I can't put it into the video.
I think the problem is related to the fact that the audio in the wav file is sampled, and the audio in my Matlab variable isn't...
Help, please. Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by