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

Use external stream as live stream #13179

Closed
johnrobertcobbold opened this issue Aug 19, 2024 · 1 comment
Closed

Use external stream as live stream #13179

johnrobertcobbold opened this issue Aug 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@johnrobertcobbold
Copy link

johnrobertcobbold commented Aug 19, 2024

Describe what you are trying to accomplish and why in non technical terms

I want to be able to use the external stream defined in my configuration file (below), such as rtsp://192.168.35.5:8554/front_yard_camera, as the live stream in the Frigate web UI. I am not using the Frigate go2rtc but an external go2rtc instance. Apart from the live stream, everything else works (detection, recording, reviewing through Frigate and the Home Assistant custom:frigate-card with WebRTC ). I can of course view the live stream in Home Assistant but it's annoying that it does not work in the Frigate web UI.

I tried to use the camera name front_yard_camera as defined in the configuration file under live.stream_name but this is not working. When checking the Chrome dev console, I see that a websocket connection is attempted but fails:

WebSocket connection to 'ws://192.168.35.5:5000/live/jsmpeg/front_yard_camera' failed: WebSocket is closed before the connection is established.

Describe the solution you'd like
To be able to view my external go2rtc rtsp using WebRTC the way I can do with the Home Assistant custom:frigate-card

Additional context

Frigate configuration

cameras:
  front_yard_camera:
    ffmpeg:
      hwaccel_args: preset-rpi-64-h264
      output_args:
        record: preset-record-generic-audio-aac
      inputs:
        - path: rtsp://192.168.35.5:8554/front_yard_camera?video&audio
          roles:
            - detect
            - audio
            - record
    live:
      stream_name: front_yard_camera

go2rtc configuration:

streams:
    front_yard_camera:
       - rtsp://xxx:xxx@192.168.35.4/stream1
       - ffmpeg:front_yard_camera#audio=aac
@johnrobertcobbold johnrobertcobbold added the enhancement New feature or request label Aug 19, 2024
@NickM-27
Copy link
Collaborator

Frigate has direct control of the internal go2rtc configuration and sets many specific values so it works in a way that it expects. We also use this config file to make decisions. For the improved live view to be used in the UI, the internal go2rtc must be configured

#10181 includes a detailed explanation of this

@NickM-27 NickM-27 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants