Problem adding audio to video file
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (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!