I am trying to capture images from an IP camera in real time. The thread works fine in VLC, but OpenCV cvQueryFrame()
seems to shuffle and corrupt incoming images to a point without recognition.
Again, capturing from a file works fine, but not live. If that matters, I use the rtsp connection url; I also tried this with two different cameras (different brands) and the problem remains.
In addition, the codec (I assume) displays several errors of the following type: Error at MB: 1746
and concealing 6000 DC, 6000 AC, 6000 MV errors
.
What can I do?
Update: The first error in the sequence always cannot parallelize deblocking type 1, decoding such frames in sequential order
Update 2: Well, it seems that the problem with OpenCV / FFMPEG is related to rtsp / h264 streams. I tried the Qt Phonon library, which also does not work, and I quickly provided the Live555 library. This last one seems to work, in the sense that everyone says that it is, and the sample application (OpenRTSP) really works well with my stream. However, to be honest, getting into hands with the Live555 code seems like a long affair that I can barely afford now. Prohibition of any other alternative, I think I will have to go along this route.
Is there any other solution that comes to mind?
Update 3: I got the RTSP test client from Live555 code to work, so I know how to extract h264 frame information from the stream, but now I need to recombine this frame information into the actual displayed frames, which do not seem simple! Anyone familiar with Live555 know how to do this? Thanks.
source share