VideoCapture() does not work with udp protocol

I understand, and is it possible that VLC can play it and FFmpeg can’t? It is the first project that I do and they are the cameras that I have, all Yoosee

Yes and also you have observed this first hand, you can play with VLC but not with FFplay.