opencv rtsp stream protocol
It was answered in the github opencv issues. The problem is that opencv forces ffmpeg to use a tcp connection, whereas my server uses rtp protocol(udp transport layer). So in order to resolve the problem i changed the server to an http stream.