You have to add username and password on the rtsp_url
const std::string rtsp_url = "rtsp://<username>:<password>@192.168.2.100:5010/video.sdp";