./vstab -r 180 <input>.AVI <output>.avi
ffmpeg \ -y -sws_flags lanczos -deinterlace \ -f video4linux2 -s 768x576 -r 25 -i /dev/video0 \ -f alsa -ar 44100 -ac 2 -i default \ -croptop 4 -cropbottom 4 -cropleft 4 -cropright 4 \ -s 640x352 -vcodec mjpeg -qmax 1 \ -acodec pcm_s16le \ capture.avi
./vstab capture.avi <output>.avi