Video Codec detection improved