import cv2

path = "../yejian.mp4"
cap = cv2.VideoCapture(path)
print("width:{} height:{} fps:{}".format(cap.get(3), cap.get(4), cap.get(5)))

# for i in range(250):
ret, frame = cap.read()
path = path.split('/')[1].split('.')[0]
cv2.imwrite(path+".jpg", frame)
