corrupted opencv video file

Took me a day to figure out whats going on. It turns out, the frame width and height are not always the same as the input.

the solution is just use cv2.resize to get the frame back to the original resolution, or use the processed frames’ resolution natively.

Leave a comment