VideoCapture#grab Source

asked 2016-11-11 15:33:45 -0600

vidark gravatar image

Hi,

where can I find the source for the VideoCapture#grab implementation? I'd like to know if I can encoded frames too, instead of having to retrieve() a decoded version. Why: I need to store a certain, large, number of frames (/question/112096/videocapture-frames-videocapture-possible/) and read them one by one. I can't find a way to simply put specific frames of a VideoCapture into another VideoCapture, and I don't want to store them to files first to only read them a bit later.

edit retag flag offensive close merge delete

Comments

All source files are on github

LBerger gravatar imageLBerger ( 2016-11-11 15:38:12 -0600 )edit

@LBerger I know, but I could not find the implementation of the VideoCapture class. Only its declaration.

vidark gravatar imagevidark ( 2016-11-11 15:39:30 -0600 )edit

@LBerger Oh wow you found it thanks!

vidark gravatar imagevidark ( 2016-11-11 15:39:51 -0600 )edit

@LBerger Aw, too bad that the implementation isn't as straightforward as I had hoped. Oh well, guess I need to dig deeper.

vidark gravatar imagevidark ( 2016-11-11 15:41:15 -0600 )edit
1

If you work with a debugger you can find implementation

LBerger gravatar imageLBerger ( 2016-11-11 15:42:36 -0600 )edit