When I open the RTSP link on VLC, it works perfecly, the same when I open the ipcam management system. We have a clean video, in the same computer. This is the reason which I can not think the problem is bad/slow network.
gray (or green) frames happen when there hasn’t been a keyframe yet.
if you make it decode the stream right away, it’s “starting” somewhere other than the beginning of the stream, so it’s getting predictive frames first, not a keyframe.
the picture will snap to what it should be as soon as there’s a keyframe.
As I said, when I open the same camera at the same time in VLC the image is perfect.
Other question: It is very common when we got moviment (cars crossing camera) the image getting frozen, it is not a “fluid” image and again, in VLC image is perfect.
How to solve both questions? Should I put any extra config in opencv setup?
Thanks.
I don’t know what exactly you did, I haven’t seen the code you run, I don’t know anything about your video source, how you set it up, … I can’t even replicate the issue.
in any case, I can’t help with RTSP issues. RTSP is not an area I specialize in.
In same computer where I’m playing opencv, I have the NVR software of intelbras where I did a lot of records (more than 10 hours) and did not get any grayscreen:
Thanks for your support @crackwitz.
Sorry, but maybe I did not understand correctly you suggestion.
Your answer means that opencv is using the video libraries: gstreamer or ffmpeg and I should test my stream in a program which use these libraries, right?
Is not that exactly what I did in my print screen above, when I compare VLC to opencv, same time, same camera? I showed the stream running perfectly in VLC and grayscreen in opencv.
Sorry about misunderstanding. I wait for your support.
Thanks and best regards.