How to get keyframes from videofile?

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

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

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

Comments

A four year old question is not promising. I also need to extract keyframes and I am new to OpenCV.

matt.briggs gravatar imagematt.briggs ( 2019-02-26 11:07:06 -0600 )edit

@matt.briggs better was to ask your own question to get attention of users. i think no one is aware of your problem now.

sturkmen gravatar imagesturkmen ( 2019-02-26 11:29:01 -0600 )edit