Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

'I', 'Y', 'U', 'V' exception

$
0
0
Hello, I am recording video using IYUV codec. It is present in my system, because i can see it when using -1 for FOURCC ![image description](/upfiles/14734033757112832.jpg) But first time i want to record frame i have an exception ![image description](/upfiles/14734034422267049.jpg) 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(); **UPDATE** The same is happening during playback, using VideoCapture

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>