Is there any way to send userId, password to rtsp ip camera?

Probably not going to work for you but if nothing else does you could try seeing if you can access through ONVIF Device Manager, without having to login to it first. If so you should be able to get a connection string from the live tab for the camera.

I mention this because sometimes you can’t use the password in plain text and the url ends up looking like

rtsp://192.168.1.2:554/user=admin_password=eqFKuJui_channel=1_stream=0.sdp?real_stream

where eqFKuJui is the encoded password. I have seen this on several different non brand Chinese IP camera’s, and I haven’t been able to get the connection string any other way.