AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
7.24k stars 522 forks source link

Go2rtc and NVR compatible with xmeye. #993

Open PauloCardosoC opened 8 months ago

PauloCardosoC commented 8 months ago

Screenshot_20240311-112949_XMEye The go2rtc is amazing, finally i can put all my ip cam's at home into homeassistant. But i trying using it like a proxy to resend the streams to my NVR and lower my wifi overload. My NVR only support the onvif and the netip protocols, the go2rtc support the onvif but only the first stream show up.

What i need to do to make this work?

My config are simpler

streams:
  rs-garagem:        rtsp://user:pass@address:554/onvif1
  rs-garagem-Sub:    rtsp://user:pass@address:554/onvif2
  rs-fundo:          rtsp://user:pass@address:554/onvif1
  rs-fundo-Sub:      rtsp://user:pass@address:554/onvif2

Thanks for your help.

PS. Screenshot with my nvr specifications.

AlexxIT commented 7 months ago

go2rtc outputs all streams via ONVIF server. Perhaps the problem is on the side of your NVR

xlucasfelix commented 2 months ago

Hello @PauloCardosoC, were you able to get around this problem?

guedini commented 1 month ago

I'm getting the same issue. I added the rtsp data for all cameras but the same camera is displayed for all channels. I'm now using VMS and I see that only IP and port are saved. So I think xmeye ignores everything after the port, so that is why all images are the same.

Any suggestion on how to get different paths to the cameras?

PauloCardosoC commented 1 month ago

Sorry about the delay to answer. Week test in my university.

I change the order of my setup.

I put the Nvr between the cameras and the go2rtc. Camera -> Nvr -> go2rtc -> home assistant

I will try get the address i have used in my go2rtc to access the nvr and put here.

guedini commented 1 month ago

@PauloCardosoC

using this way, are you able to run any automation in Homeassistant or are you only able to see the video of each camera?

I'd like to have some automations based on camera movements, etc.

Thanks

PauloCardosoC commented 1 month ago

Sorry about the delay to answer. Week test in my university.

I change the order of my setup.

I put the Nvr between the cameras and the go2rtc. Camera -> Nvr -> go2rtc -> home assistant

I will try get the address i have used in my go2rtc to access the nvr and put here.

This are the address used by the xmeye nvr:

rtsp://NVR-IP-ADDRESS:554/user=USERNAME&password=PASSWORD&channel=CHANNEL-NUMBER&stream=0.sdp?

Exemple rtsp://192.168.250.240:554/user=NOBODY&password=123456789&channel=1&stream=0.sdp?

PauloCardosoC commented 1 month ago

@PauloCardosoC

using this way, are you able to run any automation in Homeassistant or are you only able to see the video of each camera?

I'd like to have some automations based on camera movements, etc.

Thanks

Sorry. Because the poor quality of my cameras and the poor support my automations never worked.