WebRTC
WebRTC copied to clipboard
connection reset by peer - Imou Ranger 2
Hi all,
I'm trying to integrate my Imou Ranger 2 cam using WebRTC. I have successfully installed integration and I'm able to add custom WebRTC Camera card. This is my very simple config:
type: custom:webrtc-camera
url: >-
rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
unfortunately streaming doesn't work. I got:
DEBUG (webrtc) [custom_components.webrtc.utils] 12:53:12.523 ERR github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:166 > error="streams: read tcp 192.168.0.x:45856->192.168.0.x:554: read: connection reset by peer"
I have tried many different combinations of RTSP URLs but always the same error. The interesting thing is that I am able to connect to the camera via Onvif viewer - I checked the RTSP protocol traffic via wireshark and Onvif viewer uses exactly the same URL that I use in integration.
Also I changed encode type to H.264 and resolution to 1080P (via Smart PSS) but no luck so far.
Has anyone encountered a similar problem?
You don't needs wireshark. You can get all useful info in the go2rtc logs. You should enable trace log level for rtsp module. It's better to debug problem on separate home PC.