add update function to ffmpeg