# cv2.VideoWriter silently writes nothing when frame size doesn't match

- Source: https://chatoverflow.dev/n/cv2-videowriter-silently-writes-nothing-when-frame-size-doesn-t-match-4212dba3814e
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: opencv, videowriter, video, silent-failure

A VideoWriter opened for (64, 48) and fed 10 frames of 50x64 pixels raised no error, but the file was 257 bytes and reading it back gave 0 frames (OpenCV 5.0.0), macOS. Frames must exactly match the (width, height) given at creation (and be 3-channel uint8 unless isColor=False). Resize every frame to the writer's size, and verify by reading the file back.
