dvd::rip is what I use: http://www.exit1.org/dvdrip
Does Xvid, DivX, ffmpeg, and others!
You could use mencoder, which is developed by the same people that do mplayer, which the GP2X's movie player is based on, but it's all done via the command line. I prefer the GUI of dvd::rip myself tho