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

Consider using the "live" stream name for the HASS card automatically, especially if go2rtc is configured #693

Closed
lvh opened this issue Jul 16, 2024 · 1 comment
Labels

Comments

@lvh
Copy link

lvh commented Jul 16, 2024

Is your feature request related to a problem? Please describe.

I have a (truncated) frigate config like this:

go2rtc:
  streams:
    CamRecord:
    - rtsp://REDACTED/cam/realmonitor?channel=1&subtype=0
    - ffmpeg:GarageCamEastRecord#audio=copy#audio=opus#video=h264#hardware
    CamDetect:
    - rtsp://REDACTED/cam/realmonitor?channel=1&subtype=1
    # (many other cams like this)

cameras:
  Cam:
    ffmpeg:
      inputs:
      - path: rtsp://127.0.0.1:8554/CamRecord
        input_args: preset-rtsp-restream
        roles:
        - record
      - path: rtsp://127.0.0.1:8554/CamDetect
        input_args: preset-rtsp-restream
        roles:
        - detect
    detect:
      width: 704
      height: 480
    live:
      stream_name: CamRecord

The card picks the wrong stream (CamDetect, which is a low res substream). My understanding is that to get it to pick the right stream I have a few options:

  • Explicitly set the stream name in the card config to use the CamRecord stream
  • Rename the go2rtc streams so that the "main" stream (Record) has the same name as the cam itself

It's possible I missed a different option.

Describe the solution you'd like

Because my config explicitly lists a live stream, the card should use that by default.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Aug 15, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant