Skip to content

Instantly share code, notes, and snippets.

@jeremy-rutman
Created December 2, 2019 21:57
Show Gist options
  • Select an option

  • Save jeremy-rutman/95bc82cc14b33c6b14899917ccb35f86 to your computer and use it in GitHub Desktop.

Select an option

Save jeremy-rutman/95bc82cc14b33c6b14899917ccb35f86 to your computer and use it in GitHub Desktop.
convert sreies of images to video
import cv2
#MJPG , DIVX , and H264
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi', fourcc, 20.0, (W, H))
for img_arr in img_arr_list:
out.write(img_arr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment