I use a program called Handbrake for this.
Google this, and you may have to download a less recent version of it for mac's like I did.
It works well, it takes sometime to work though, for a 2 hour movie it should take about an hour to swap.
Hope this heps.