ffmpeg improvements