Major refactoring of the DVD encoding algorithms: