Compressed .avi file with both audio and video

3 views (last 30 days)
Hello
I have tried creating a compressed .avi file with both audio and video, using videowriter and vision.videofilewriter, but it seems impossible.
I'm using MATLAB 2014a on Mac OS X Lion.
Any help would be appreciated
  3 Comments
Andreas
Andreas on 28 May 2014
You can use either VideoWriter with getframe and writeVideo, or vision.VideoFileWriter with getframe and step.
The compression method can be set from the property VideoCompressionMethod. When the method is not 'None (uncompressed)' no sound can be added in the case of Vision.VideoFileWriter. In the case of VideoWriter I don't see in the beginning any possibility of sound at all...
Image Analyst
Image Analyst on 29 May 2014
I've never added audio to my movies so I can't help you. I'd like to know for future reference though.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!