Advertisement
madanh

fourcc

Aug 5th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #To save a Video File
  2.  
  3. import numpy as np
  4. import cv2
  5.  
  6. cap = cv2.VideoCapture(0)
  7.  
  8. # Define the codec and create VideoWriter object
  9. fourcc = cv2.cv.CV_FOURCC(*'XVID')
  10. out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement