Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

'M', 'R', 'L', 'E' codec recording 0 bytes

Hello, I am recording video like this

unsigned char* frame;//rgb raw data
int width = 800;
int height= 400;

Size frameSize(width, height);
VideoWriter recorder(name.toStdString(), CV_FOURCC('M', 'R', 'L', 'E'), 20, frameSize, true);
Mat _frame(frameSize, CV_8UC3);

_frame.data = frame;
_recorder.write(_frame);

_recorder.release();

But no frames is recorded. File size is 0. Can you help me to find out what i am doing wrong, please.

'M', 'R', 'L', 'E' codec recording 0 bytes

Hello, I am recording video like this

unsigned char* frame;//rgb raw data
int width = 800;
int height= 400;

Size frameSize(width, height);
VideoWriter recorder(name.toStdString(), CV_FOURCC('M', 'R', 'L', 'E'), 20, frameSize, true);
Mat _frame(frameSize, CV_8UC3);

_frame.data = frame;
_recorder.write(_frame);

_recorder.release();

But no frames is recorded. File size is 0. Can you help me to find out what i am doing wrong, please.

UPDATE

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?