Generation/handling of movies (in Unix environment)
To reduce the size (weight) of your movies you can use the following ffmpeg command:
ffmpeg -i input.avi -vcodec libx264 -crf 40 output.avi
Typical values of -crf parameter go from 20 to 30. Larger values may result in a loss of resolution.