Content adaptive video encoding