Check syntax of cv2.VideoWriter , if checked, then , check that dimensions of the cv2.VideoWriter is same as that of your video .