i can save the video in .avi format.but i am unable to write the video in mp4 format. i m using opencv3 fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480)) above portion of code saves the video in .avi format. Continue reading...