Handbrake. It asks for a DVD or a folder like you have. Should allow you to batch them all up as well and just let it go.

I would however recommend not using divx/xvid, and instead use h.264/AVC. This will make the movies a bit more portable to other environments for playback.