cv2.VideoWriter and lose 1 pixel in height after saving as video

When I generate a video using cv2.VideoWriter, the height value I set is one pixel different from the height value of the saved video

please show, what you’re doing there (code!)