Transcode videos to h264 before encoding