Revision history [back]

How to get keyframes from videofile?

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:

• read() next keyframe
• 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

How to get keyframes from videofile?

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)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 keyframekeyframe
• 2nd way: do fast-working grab() for each 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