Add assertions that the video cannot change on disk before writing