Please make sure you correctly indent your code and use the code snippet thingy So it’s clear if you have a code issue.
Here is my code for tapo cameras, hope it helps:
mqtt:
host: mqtt-server-ip
user: un
password: pw
go2rtc:
streams:
dn_dr_1_cam:
- rtsp://un:pw@ip:554/stream1
- "ffmpeg:dn_dr_1_cam#audio=aac"
dn_dr_1_cam_sub:
- rtsp://un:pw@ip::554/stream2
cameras:
dn_dr_1_cam:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/dn_dr_1_cam
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/dn_dr_1_cam_sub # <--- the name here must match the name of the camera_sub in restream
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: dn_dr_1_cam_sub
detectors:
coral:
type: edgetpu
device: usb
# cpu1:
# type: cpu
# cpu2:
# type: cpu
objects:...
birdseye:...
record:...
detect:...
snapshots:...
ffmpeg:...