Compressed .avi file with both audio and video

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

What steps (code) are you using to create the compressed avi file? While I have never tried to do this, I do have the same version of MATLAB and operating system as you.
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...
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)

Asked:

on 28 May 2014

Commented:

on 29 May 2014

Community Treasure Hunt

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

Start Hunting!