save recorded video wmv

asked 2015-04-12 23:57:07 -0500

arefenayat gravatar image

updated 2015-04-13 06:51:58 -0500

thdrksdfthmn gravatar image

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 .

edit retag flag offensive close merge delete