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
6.95k stars 497 forks source link

HA managed version not running properly or updating #1451

Open bmorgan99 opened 1 week ago

bmorgan99 commented 1 week ago

go2rtc has a pid but is not responding on port 11984 (or 1984) and what I think is it's config file only shows 1 camera. How can I restart it, and will it then get the cameras from config/go2rtc.yaml? Rebooting didn't help.

ps -ef | grep go2 178 root 0:00 /bin/go2rtc -c /tmp/go2rtc_mvp3jup8.yaml

tmp/go2rtc_mvp3jup8.yaml

# This file is managed by Home Assistant
# Do not edit it manually

api:
  listen: "127.0.0.1:11984"

rtsp:
  listen: "127.0.0.1:18554"

webrtc:
  listen: ":18555/tcp"
  ice_servers: []
streams:
  camera.garden_orginal:
    - rtsp://admin:xxxxx@192.168.1.28/h264Preview_01_main
  camera.garden:
    - rtsp://127.0.0.1:18554/camera.garden_orginal
    - ffmpeg:camera.garden_orginal#audio=opus
AlexxIT commented 1 week ago

The HA embedded version of go2rtc is not designed for use outside of HA. But you can run your own go2rtc version (addon/custom integration/etc) and config HA to use this version: https://www.home-assistant.io/integrations/go2rtc/

bmorgan99 commented 1 week ago

I thought I was trying to use it within HA. Does that mean I would only use the generic cameras and not webrtc? I don't have the add-on loaded. Shouldn't I see something on port 11984?

AlexxIT commented 1 week ago

It's localhost port. You can open it only from the inside of your server.