Hello, I am recording video using IYUV codec. It is present in my system, because i can see it when using -1 for FOURCC
But first time i want to record frame i have an exception
This is happening only at first frame and only when i run it in Visual Studio (2015). If i press "Continue" everything is going well. After this recording is going without any problems. If i run application outside of Visual Studio nothing visible is happening.
I don`t think, what it is normal behavior. Can you help me please, what i am doing wrong and how to fix it.
I am using binaries, compiled myself in VS2015 from opencv-3.1.0 source. Maybe i need to configure "cmake" or VS project in special way?
source code
unsigned char* frame;//rgb raw data
int width = 800;
int height= 400;
Size frameSize(width, height);
VideoWriter recorder(name.toStdString(), CV_FOURCC(''I', 'Y', 'U', 'V'), 20, frameSize, true);
Mat _frame(frameSize, CV_8UC3);
_frame.data = frame;
_recorder.write(_frame); <-line of exception
_recorder.release();