Screencast setting/format

Anyone have any tips on screencast settings/format. I have done a few tests and the quality is pretty low and file size pretty high. I did avi jpeg and a compression of 30%. A ten minute screencast was 1.6 GB with mediocre quality.