save recorded video wmv
is possible to save recorded video from webcam as wmv format ?(in python) here is python code
camera=cv2.VideoCapture(int(c))
video = cv2.VideoWriter()
fourcc=cv2.cv.CV_FOURCC(*'WMV3')
video.open('video.wmv', fourcc, fps, (int(camera.get(3)), int(camera.get(4))))
while True:
f,img = camera.read()
video.write(img)
video.release()
when i've run this code my program work but not any video save .