Ask Your Question
0

Problem while get video from IP Camera (OpenCV 2.3.1)

asked 2015-06-25 02:35:59 -0600

bdm77 gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-29 01:56:29 -0600

bdm77 gravatar image

There was a problem in the old library ffmpeg.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-25 02:35:59 -0600

Seen: 1,664 times

Last updated: Jun 29 '15