title: how to get frames with timestamp where frames are converted from video in python
body: <p>I want to convert video into the frames before feeding it to the classification model. So I need frames on every unique timestamp converted from video here timestamp is the seconds in the video. The following code from opencv lets me convert for every 10 capturing of the frames but I need the timestamp of each frame in the video. Please let me know thanks</p>
  
  <pre><code>import cv2
  
  vidcap = cv2.VideoCapture('testing.mp4');
  success,image = vidcap.read()
  count = 0
  success = True
  
  while success:
      success,image = vidcap.read()
      print('read a new frame:',success)
      if count%10 == 0 :
           cv2.imwrite('frame%d.jpg'%count,image)
           print('success')
      count+=1
  </code></pre>