Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection reset by peer - Imou Ranger 2 #747

Open
andrzej-devops opened this issue Sep 19, 2024 · 1 comment
Open

connection reset by peer - Imou Ranger 2 #747

andrzej-devops opened this issue Sep 19, 2024 · 1 comment
Labels
question Further information is requested

Comments

@andrzej-devops
Copy link

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?

@AlexxIT AlexxIT added the question Further information is requested label Oct 6, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants