VideoWriter ouputs artifacts in some occasions

Converting the array to np.uint8 was the solution! Thanks!

I also created a tiny archive (10mb) to reproduce this issue:
https://drive.google.com/file/d/1B9OSUgFyvUMZYXRBJaMMzd4AJdexj-4S/view?usp=sharing