Stop writing to the video file. This closes the video, after calling stop() it is no longer possible to provide new frames.