1 | initial version |
I'm not entirely sure that I get your question, but probably that works for you;
Have look on VideoWriter. In the .open()-Function you can define the Framerate. With the normal VideoCapture(which you already use as far as I understand) you can read then images @ 30fps and write them at 150fps. But that would not be slowing, that would be speeding the video up by a factor of 150/30 = 5.
So simply (Pseudocode)
Videocapture in;
VideoWriter out;
out.open(..., 150, ..)
Mat m << in; // reads @ input video's frame rate
// probably process
out << m; // writes @ 150fps, because we specified that in open function