Problem adding audio to video file
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!