Some video encoding improvements.