Handbrake is the job, except it rips to .mp4 format, not .avi.
The files play in Quicktime or iTunes.
Edit: Also requires VLC Media Player - which will play anything you throw at it.
What is the difference in these formats as regards quality?
Is handbrake a freebie?