Problem while get video from IP Camera (OpenCV 2.3.1)
I use OpenCV 2.3.1. I am trying get video from IP Camera (rtsp protocol) but get the following error:
IplImage* frame;
CvCapture* cam = cvCaptureFromFile("rtsp://admin:[email protected]/defaultPrimary?streamType=u"); while(true)
{
frame = cvQueryFrame(cam);
cvShowImage("Test", frame);
if (cvWaitKey(10) == 27){
break; }
}
In the console I get errors and poor quality video!
[h264 @ 009da1a0] Cannot parallelize deblocking type 1, decoding such frames in sequential order
[h264 @ 009da1a0] error while decoding MB 96 11, bytestream (-3)
[h264 @ 009da1a0] concealing 6793 DC, 6793 AC, 6793 MV errors
[h264 @ 009da1a0] concealing 4473 DC, 4473 AC, 4473 MV errors
[h264 @ 009da1a0] concealing 7729 DC, 7729 AC, 7729 MV errors
[h264 @ 009da1a0] error while decoding MB 82 66, bytestream (-3)
[h264 @ 009da1a0] concealing 207 DC, 207 AC, 207 MV errors
[h264 @ 009da1a0] cabac decode of qscale diff failed at 37 34
[h264 @ 009da1a0] error while decoding MB 37 34, bytestream (16556)
[h264 @ 009da1a0] concealing 4092 DC, 4092 AC, 4092 MV errors