deepch / RTSPtoWebRTC

RTSP to WebRTC use Pion WebRTC
MIT License
1.58k stars 418 forks source link

Cannot connect camera due to error "Please log in with a valid username". #204

Open 1paulchung opened 1 year ago

1paulchung commented 1 year ago

I am trying to connect a Bosch camera and stream onto the webpage. The rstp stream is rtsp://username:password@ipaddress, but I keep getting the following error in the logs.

Authorization: Digest username="admin", realm="Please log in with a valid username"

Does anyone know how to get rid of this error and be able to stream onto webpage? I'm able to stream on VLC, so I know the credentials are correct.

gnistor commented 3 months ago

The solution for me was to append another parameter in rtsp URL: h26x=4 Reference here: https://community.boschsecurity.com/varuj77995/attachments/varuj77995/bt_community-tkb-video/241/1/RTSP%20usage%20with%20Bosch%20Video%20IP%20Devices.pdf

rtsp://user:pass@10.102.205.12/rtsp_tunnel?p=1&line=1&inst=2&vcd=2&h26x=4

After that i was able to see the RTSP stream perfectly for a BOSCH Dinion Inteox 7100 camera.