Read the video frame by frame and convert them to JPEG format
import cv2
video = cv2.VideoCapture("videoplayback.mp4")
success,image = video.read()
count = 0
success =True
while success:
  success,image = video.read()
  cv2.imwrite("frame%d.jpg" % count, image)     # save frame as JPEG file
  count += 1