I want to capture video from a webcam and save it to an mp4 file using opencv. I found example code on stackoverflow (below) that works great. The only hitch is that I\'m trying
just change the codec to "DIVX". This codec works with all formats.
"DIVX"
fourcc = cv2.VideoWriter_fourcc(*'DIVX')
i hope this works for you!