Optimize entire movie library into a different directory?

Similar discussion here.