proper video handling and video thumbnail generation