Compressing an AVI file

조회 수: 8 (최근 30일)
Sakthivel
Sakthivel 2012년 10월 16일
댓글: Veronika Mazulina 2020년 3월 31일
Hi I would like to compress an avi file created from MATLAB. I have to extract audio samples and video frames seperately, process them and synchronize them . I have processed the video frames using VideoWriter Command. The resulting file was 175 mb in an uncompressed format which runs less than a minute.Can you please let me know if there are any commands to compress the AVI file, or convert it to MPG ?
Thanks in advance, Sakthivel.K
  댓글 수: 1
Matt Kindig
Matt Kindig 2012년 10월 16일
You can specify a codec (compression algorithm) in avifile, to compress it to an avi, provided you have Windows. See :
doc avifile
You also might want to look into VirtualDub-- it's an open source program that can read and compress lots of different AVI codecs.

댓글을 달려면 로그인하십시오.

답변 (1개)

Guillaume
Guillaume 2015년 4월 20일
According to VideoWriter docs, the default codec, if you don't specify a profile is an MJPEG avi. Therefore, you must have specifically asked for an uncompressed AVI when you've created your videowriter.
Get rid of the profile argument, or choose a compressed profile in your call to VideoWriter
  댓글 수: 1
Veronika Mazulina
Veronika Mazulina 2020년 3월 31일
Thank you! It helps.

댓글을 달려면 로그인하십시오.

카테고리

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