Improve compatibility with FFMPEG