how to compress a video? i converted the video to frames. My next procedure is to reduce the frames and then to compress it. How to achieve those?
[Merged from duplicate]
my problem with video compression. assume we have 100 images, how can we compress and regenerate video from those images using matlab code.
your ideas will help me so much in my research.

4 Comments

hi walter. can you clarify me this doubt?
Are you trying to write the video compression code yourself, or are you trying to use one of the routines that convert frames to a video file, and which have compression built in?
I am trying to use one of the routines that convert frames to a video file, and which have compression built in..
shashi
shashi on 18 Jun 2013
Hi ..... I need a solution on how to compress the Video+ noise -> reconstructing Video -> Video Recovery as Original ....

Sign in to comment.

 Accepted Answer

Youssef  Khmou
Youssef Khmou on 3 Mar 2013
Edited: Youssef Khmou on 3 Mar 2013

0 votes

hi,
If you already use "avifile" , then look at its properties :
On Windows: 'Indeo3''Indeo5''Cinepak''MSVC''RLE''None'

6 Comments

i checked those properties in MATLAB help. can you help me for the syntax of it
Suppose you want create an avifile with 'Cinepak' compression codec :
>>file01=avifile('TEST.avi','Compression','CinePak')
The codec choosen must be installed if already not ,
>>get(file01,'Compression');
If CinePak does not work try other available options :
>>file01=set(file01,'Compression','Indeo3')
%.......continue your code here
your code works perfectly.. how to justify our answer that the input video has been compressed?
I used compression. now all videos memory turned as 0kb.. (zero kb). How to solve this?
Youssef  Khmou
Youssef Khmou on 3 Mar 2013
Edited: Youssef Khmou on 3 Mar 2013
i do not understand how that 0kb happend, but for the first question , when you finish adding frames just type " file01" as name of avifile , i am sure there is a parameter that will indicate the ratio or % of compression, you will find it in " Automatically updated parameters:" section .

Sign in to comment.

More Answers (1)

malavika mohan
malavika mohan on 19 Sep 2017

0 votes

i want coding in video compression any one know plz send coding

Community Treasure Hunt

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

Start Hunting!