First time here? Check out the FAQ!
answered 2013-06-19 01:15:13 -0600
You should write this part out of Loop
writer = cv2.VideoWriter(vidDir, fourcc, 30, (width,height))
because it construct a new video file at each iteration.