andrewssobral / lrslibrary

Low-Rank and Sparse Tools for Background Modeling and Subtraction in Videos
826 stars 376 forks source link

Output File is too large as compared to input video size. #8

Open ashwinbhy opened 6 years ago

ashwinbhy commented 6 years ago

For input video file of size 3.45 Mb (dataset highway.avi) , the ouput video of L and S is 345 Mb each respectively. I ran GoDec in RPCA. Can i reduce the ouput video size without hampering anything ?

andrewssobral commented 5 years ago

Hi @ashwinbhy , I am sorry for my delayed feedback to you, I was very busy these last days. Thanks for opening this issue, this is a good remark. In fact, the output video size is bigger than the input video because I don't use a codec for video compression (Uncompressed AVI). However, you can modify the code to use a specific codec, there are also some parameters that enabled a better video compression, you can give more info here: https://fr.mathworks.com/help/matlab/ref/videowriter.html