Content-aware video encoding