Try mediacoder. it's free, and works well.
But if it's too complicated (it is pretty complicated) then try handbrake. With a combination of that and DVD43 (another Software) you can also rip DVD's in those formats (most newer dvd's don't work very well though).