Fixing FFMPEG finalization of file writing.