Hello,
I want to capture my software window by using OpenCV. I found the VideoWriter class and use it to make video with screenshots taken each X msec. My software use Qt so I take a QPixmap each time, convert it to cv::Mat and add it into VideoWriter.
My problem: the video become big after only one minute and when the video is bigger than 2Go it cannot be read by video media player (Windows 7). Moreover, the video cannot be bigger than 4Go.
There is my initialize method:
cv::Size videoSize = cv::Size(_mainWindow->width(),_mainWindow->height());
int codec = cv::VideoWriter::fourcc('M', 'S', 'V', 'C'); // This codex works only with short video.
_writer.open(fullFileName.toStdString(), 6, FPS-5, videoSize, true);
Can you help me to identify the problem? Is it the used codec?
Thanks in advance