1 | initial version |
Hello,
I am not sure if you have found a solution or gave up, but this is what I have found.
When you are using cv2.VideoWriter('output.avi',fourcc,fps,(width,height))
you are missing the last argument of the function, is_color. By default, that is set to true, but you need to set it to false.
So just write cv2.VideoWriter('output.avi',fourcc,fps,(width,height),false)
Your program should work then.