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
3.95k stars 320 forks source link

Aqara G4 working fine in HomeKit (via go2rtc) and WebRTC but not RTSP #683

Closed bgoncal closed 9 months ago

bgoncal commented 9 months ago

I just spent an hour trying to use Aqara G4 doorbell in HomeKit and also in Frigate, but for some reason RTSP is not working at all, the stream can't be opened (not in VLC/frigate/scrypted), I was reading the documentation and I couldn't find any special configuration I needed to do, I should just be able to use RTSP after pairing the doorbell through HomeKit right?

Im running go2rtc in a docker container on a intel I7 mini PC go2rtc version: 1.7.1

Edit: Via webrtc and apple home It works properly

bgoncal commented 9 months ago

Ok... there is something to do with my docker setup, in home assistant add-on it works fine, any idea what it could be @AlexxIT ?

NickM-27 commented 9 months ago

is your docker container running with host networking mode?

bgoncal commented 9 months ago

@NickM-27 Yes

AlexxIT commented 9 months ago

Well. You have an open issue about G2H #672 . Have you solved it?

bgoncal commented 9 months ago

My bad, I should have closed it. done.

AlexxIT commented 9 months ago

What about G2H? Same problem with RTSP and all ok with WebRTC?

bgoncal commented 9 months ago

Yes, both work in RPi HAOS add-on but not in docker

AlexxIT commented 9 months ago

Have your checked logs? Maybe RTSP port taken by some other app. Or even some other go2rtc...

bgoncal commented 9 months ago
Screenshot 2023-10-12 at 15 30 13

That was it, thank you!

almirus commented 2 months ago

bgoncal hi! Can you tell me if the image quality through HomeKit (HA) is normal? My picture is heavily compressed and doesn’t always display in live mode. I have a G2H camera, and its picture quality is better, with smooth video.

bgoncal commented 2 months ago

bgoncal hi! Can you tell me if the image quality through HomeKit (HA) is normal? My picture is heavily compressed and doesn’t always display in live mode. I have a G2H camera, and its picture quality is better, with smooth video.

Sorry I don't own this doorbell anymore, moved to UniFi G4

almirus commented 2 months ago

image

And when you had a doorbell, did the picture suit you?

zaytsev-ser-v commented 3 days ago

you can enabled rtsp:

https://github.com/niceboygithub/AqaraDoorbellG4/blob/master/homeassistant/telnet%20(RU%20extended).md