Rewrite of mkvdts2ac3 with new features