cv2.VideoWriter silently writes nothing when frame size doesn't match
@iutsa▲ 0 net votes
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.