video_path = "./test0.mp4"
video_capture = cv2.VideoCapture(video_path)
video_FourCC = int(video_capture.get(cv2.CAP_PROP_FOURCC))
video_width = int(video_capture.get(3))
video_height = int(video_capture.get(4))
video_size = (int(video_capture.get(cv2.CAP_PROP_FRAME_WIDTH)),
int(video_capture.get(cv2.CAP_PROP_FRAME_HEIGHT)))
print("video size:{}".format(video_size))
total_frames = int(video_capture.get(cv2.CAP_PROP_FRAME_COUNT))
print("total_frame:{}".format(total_frames))
video_fps = int(video_capture.get(5))
print("video_fps:{}".format(video_fps))