Kann mir einer sagen wieso die Livestreams über Frigate Hass-Cards trotz meinen Einstellungen weiterhin per mainstream (HD) übertragen werden und das Klicken auf HD Button keinen Unterschied macht?
type: custom:frigate-card
cameras:
- camera_entity: camera.front
live_provider: go2rtc
dependencies:
cameras:
- front_sub
- camera_entity: camera.front
live_provider: go2rtc
title: Front HD
id: front_sub
hide: true
frigate: {}
triggers:
occupancy: false
motion: true
entities:
- binary_sensor.front_all_occupancy
view:
default: live
camera_select: live
dark_mode: 'off'
update_seconds: 5
timeout_seconds: 10
update_force: true
scan:
enabled: true
untrigger_seconds: 10
menu:
style: hidden
buttons:
substreams:
icon: mdi:high-definition
live:
preload: true
auto_mute: all
auto_pause: never
auto_play: all
lazy_load: false
controls:
next_previous: {}
layout:
fit: cover
microphone:
disconnect_seconds: 2
media_gallery:
controls:
thumbnails:
show_details: true
media_viewer:
auto_pause: hidden
auto_mute: all
auto_play: never
image:
layout: {}
Frigate config:
mqtt:
# Optional: Enable mqtt server (default: shown below)
enabled: True
# IP mqtt Broker von HA
host: 192.168.***
# Optional: port (default: shown below)
port: 1883
user: ***
password: ***
database:
path: /config/frigate.db
detectors:
# coral:
# type: edgetpu
# device: usb
cpu1:
type: cpu
num_threads: 3
cpu2:
type: cpu
num_threads: 3
ffmpeg:
hwaccel_args: preset-rpi-64-h264
go2rtc:
streams:
front:
- rtsp://USER:PW@192.168.***:554/h264Preview_01_main # <- stream which supports video & aac audio.
- "ffmpeg:front#audio=opus" # <- copy of the stream which transcodes audio to opus
front_sub:
- rtsp://USER:PW@192.168.***:554/h264Preview_01_sub # <- stream which supports video & aac audio.
- "ffmpeg:front_sub#audio=opus" # <- copy of the stream which transcodes audio to opus
hof:
- rtsp://USER:PW@192.168.***:554/11 # <- stream which supports video & aac audio.
hof_sub:
- rtsp://USER:PW@192.168.***:554/12 # <- stream which supports video & aac audio.
##############################################################################################
# Kamera von Front
##############################################################################################
cameras:
# Kameraname
front:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/front # RTSP Stream High Res
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/front_sub # RTPS Stream Low Res
input_args: preset-rtsp-restream
roles:
- detect
detect:
enabled: True # <---- disable detection until you have a working camera feed
width: 640
height: 360
objects:
track:
- person
# filters:
# person:
# threshold: 0.74
snapshots:
enabled: False
# timestamp: True
# bounding_box: True
retain:
default: 7
record:
enabled: False
events:
retain:
default: 7
# motion:
# mask:
# - 2024,238,1528,171,1330,189,1124,214,1081,342,751,336,748,379,379,385,0,407,0,192,0,0,837,0,2560,0,2560,157,2560,360
# - 1194,1920,1041,1783,0,1791,0,1920
# zones:
# Bewegung Front:
# coordinates: 0,1920,0,0,2560,0,2560,1920
live:
stream_name: front_sub
##############################################################################################
# Kamera vom Hof
##############################################################################################
hof: #Kameraname
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/hof #RTSP Stream High Res
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/hof_sub #RTPS Stream Low Res
input_args: preset-rtsp-restream
roles:
- detect
detect:
enabled: True # <---- disable detection until you have a working camera feed
width: 640
height: 352
objects:
track:
- person
filters:
person:
threshold: 0.74
snapshots:
enabled: False
# timestamp: True
# bounding_box: True
retain:
default: 7
record:
enabled: False
events:
retain:
default: 7
# motion:
# mask:
# - 2024,238,1528,171,1330,189,1124,214,1081,342,751,336,748,379,379,385,0,407,0,192,0,0,837,0,2560,0,2560,157,2560,360
# - 1194,1920,1041,1783,0,1791,0,1920
# zones:
# Bewegung Hof:
# coordinates: 0,1920,0,0,2560,0,2560,1920
live:
stream_name: hof_sub
##############################################################################################
# Optional: birdseye configuration
# NOTE: Can (enabled, mode) be overridden at the camera level
birdseye:
# Optional: Enable birdseye view (default: True)
enabled: False
# Optional: Restream birdseye via RTSP (default: False)
# NOTE: Enabling this will set birdseye to run 24/7 which may increase CPU usage somewhat.
restream: False
# Optional: Width of the output resolution (default: 1280)
width: 1280
# Optional: Height of the output resolution (default: 720)
height: 720
# Optional: Encoding quality of the mpeg1 feed (default: 8)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 15
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: continuous
# Optional
ui:
# Optional: Set the default live mode for cameras in the UI (default: mse)
live_mode: webrtc
# Optional: Set a timezone to use in the UI (default: use browser local time)
timezone: Europe/Berlin
# Optional: Use an experimental recordings / camera view UI (default: false)
use_experimental: False
# Optional: Set the time format used.
# Options are browser, 12hour, or 24hour (default: browser)
time_format: 24hour
# Optional: Set the date style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 2/11/23
# medium: Feb 11, 2023
# full: Saturday, February 11, 2023
# (default: short).
date_style: full
# Optional: Set the time style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 8:14 PM
# medium: 8:15:22 PM
# full: 8:15:22 PM Mountain Standard Time
# (default: medium).
time_style: medium
# Optional: Ability to manually override the date / time styling to use strftime format
# https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
# possible values are shown above (default: not set)
strftime_fmt: "%d/%m/%Y %H:%M"