I think Handbrake will do the job for you.
Google for it.