CV capturing rtsp error

Hello, i have been stuck the last couple of days trying to solve this error. I am currently trying to capture a rtsp stream using opencv. I am using the following command to try and capture it. cv::VideoCapture capture(“rtsp://192.168.1.220:10101/stream/1”); W

When I run this line i run into the following error [ WARN:0@30.091] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 30072.553324 ms.

I have also verfied the stream can be captured running the following command ffmpeg -i rtsp://192.168.1.220:10101/stream/1 -c copy output.mp4.

Does anyone have any suggestion on how to fix?