due to different frequencies I try to grab every frame by its position in milliseconds.
Right now I use the methods set and read to do this.
At first I set the position in the videocapture instance like this:
after that I grab the “next” frame with read and store it in Mat_at_time_in_ms:
This works fine but is just very slow.
Therefore I am looking for another possibilty. (I do not want to use set().
I was looking and found the method retrieve(). In the documentation I found that you can pass a driver specific flag (other than the frame index) to the function.
I was wondering wether I could use this function and pass a time in milliseconds to retrieve (instead of an index).
I couldnt find a helpful post on this problem yet. Maybe you can help.
Thanks in advance.