Support encoding of videos