Added a function to improve the contrast for .avi videos.