How to get keyframes from videofile?

asked 2015-04-22 16:09:58 -0500

updated 2015-04-23 06:15:44 -0500

Is there any way in openCV to grab from videofile keyframes only? I googled ( http://code.opencv.org/issues/1419 ) before video.set(CV_CAP_PROP_POS_FRAMES) worked this way: position was "nearest keyframe", but now it is "fixed" and I can not find the way how to process keyframes for perfomance purpose only even in one way:

  • 1st way : read() next keyframe
  • 2nd way: do fast-working grab() for each frame, check it's propertie (which one?) and if it is keyframe then do slow-working retrieve() .

P.S. password reminder does not work, at least today for my old profile -- so I had to create new account

edit retag flag offensive close merge delete