[Camera Support]: How to enable 2 way audio for Dahua CCTV camera #15808
-
Describe the problem you are havingHello, How can I enable 2 way audio for the cameras in Frigate NVR Version0.15.0-87e7b62 What browser(s) are you using?Edge or Google Chrome Frigate config filedatabase:
path: /config/frigate.db
mqtt:
host: 192.168.188.61
user: mqtt
password: ####
port: 1883
topic_prefix: frigate
client_id: frigate
stats_interval: 300
birdseye:
enabled: true
restream: false # True uses more CPU
width: 1280
height: 720
quality: 1
mode: objects
detectors:
ov:
type: openvino
device: GPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
ffmpeg:
global_args: -hide_banner -loglevel warning -threads 2
hwaccel_args:
- -hwaccel
- vaapi
- -vaapi_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
output_args:
detect: -threads 2 -f rawvideo -pix_fmt yuv420p
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -tag:v hvc1 # preset-record-generic-audio-copy
go2rtc:
streams:
webrtc:
listen: :8555
candidates:
- 192.168.188.83:8555
- stun:8555
Drive_Way:
# - rtsp://##:######@10.1.1.65:554/live0
# - ffmpeg:Drive_Way#audio=aac
- rtsp://##:######@10.1.1.65:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Drive_Way_Sub:
- rtsp://##:######@10.1.1.65:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
Main_Door:
# - rtsp://##:######@10.1.1.66:554/live0
# - ffmpeg:Main_Door#audio=aac
- rtsp://##:######@10.1.1.66:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Main_Door_Sub:
- rtsp://##:######@10.1.1.66:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
Side_Door:
# - rtsp://##:######@10.1.1.200:554/live0
# - ffmpeg:Side_Door#audio=aac
- rtsp://##:######@10.1.1.68:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Side_Door_Sub:
- rtsp://##:######@10.1.1.68:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
Garden:
# - rtsp://##:######@10.1.1.67:554/live0
# - ffmpeg:Garden#audio=aac
- rtsp://##:######@10.1.1.67:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Garden_Sub:
- rtsp://##:######@10.1.1.67:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
Main_Bed_Room:
# - rtsp://##:######@10.1.1.201:554/live0
# - ffmpeg:Main_Bed_Room#audio=aac
- rtsp://##:######@10.1.1.69:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Main_Bed_Room_Sub:
- rtsp://##:######@10.1.1.69:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
Garage_Back_Door:
# - rtsp://##:######@10.1.1.70:554/live0
# - ffmpeg:Garage_Back_Door#audio=aac
- rtsp://##:######@10.1.1.70:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Garage_Back_Door_Sub:
- rtsp://##:######@10.1.1.70:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
Meter_Box:
# - rtsp://##:######@10.1.1.71:554/live0
# - ffmpeg:Meter_Box#audio=aac
- rtsp://##:######@10.1.1.71:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
Meter_Box_Sub:
- rtsp://##:######@10.1.1.71:554/cam/realmonitor?channel=1&subtype=2#backchannel=0
##############################################
##############################################
cameras:
#####################################
Drive_Way: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Drive_Way
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Drive_Way_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1920
height: 1080
fps: 5
annotation_offset: -800
objects:
track:
- person
- dog
- bicycle
- cat
- car
filters:
person:
min_score: 0.85
threshold: 0.9
record: # what you want Frigate to record
enabled: true
retain:
days: 5
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
- 0,0.319,0,0,1,0,1,0.082,0.779,0.189,0.63,0.168,0.41,0.177,0.409,0.128,0.299,0.136,0.303,0.198,0.166,0.277
- 0.706,0.314,0.856,0.29,0.896,0.27,0.945,0.244,1,0.252,1,0.358,1,0.517,0.949,0.568,0.879,0.599,0.82,0.594,0.729,0.548,0.738,0.443,0.713,0.423
- 0.071,0.364,0.256,0.297,0.329,0.528,0.317,0.671,0.284,0.682,0.336,1,0.08,1,0.055,0.739,0.033,0.604,0.076,0.507
zones:
DW-Mailbox_Inwards:
coordinates: 0.283,0.679,0.665,0.526,1,0.838,1,0.999,0.339,1
inertia: 3
loitering_time: 0
DW-Street_inwards:
coordinates:
0.225,0.358,0.251,0.485,0.725,0.312,0.843,0.288,0.644,0.221,0.55,0.198,0.473,0.243,0.481,0.268
inertia: 3
loitering_time: 0
DW-Mailbox_grass_area:
coordinates: 0.489,0.398,0.631,0.536,0.67,0.523,0.676,0.442,0.715,0.424,0.704,0.318
inertia: 3
loitering_time: 0
DW_mailbox-outwards:
coordinates: 0.249,0.483,0.284,0.68,0.63,0.534,0.489,0.395
loitering_time: 0
review:
alerts:
required_zones:
- DW-Mailbox_Inwards
- DW-Street_inwards
- DW-Mailbox_grass_area
- DW_mailbox-outwards
Main_Door: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Main_Door
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Main_Door_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1920
height: 1080
fps: 5
annotation_offset: -800
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.85
threshold: 0.9
record: # what you want Frigate to record
enabled: true
retain:
days: 5
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
- 0.382,0,1,0,1,0.177,0.385,0.168
- 0.394,0.442,0.449,0.425,0.498,0.428,0.494,0.566,0.533,0.639,0.509,0.763,0.53,0.841,0.524,0.948,0.466,0.949,0.368,0.974,0.322,0.698,0.399,0.696,0.414,0.616
- 0.217,0.358,0.271,0.344,0.266,0.437,0.265,0.498,0.269,0.56,0.234,0.577
- 0.531,0.271,0.623,0.233,0.747,0.173,0.84,0.173,0.999,0.305,1,0.862,0.873,0.82,0.664,0.591,0.541,0.487
zones:
MD-Front_door:
coordinates: 0.056,0.593,0.183,0.54,0.202,0.662,0.241,0.652,0.402,0.951,0.348,1,0.135,1
inertia: 3
loitering_time: 0
MD-StreetInOut:
coordinates: 0.382,0.132,0.388,0.488,0.535,0.417,0.528,0.129
inertia: 3
loitering_time: 0
MD-From_driveway:
coordinates:
0.391,0.487,0.545,0.415,0.548,0.466,0.538,0.518,0.586,0.577,0.736,0.692,0.909,0.91,0.975,0.982,0.979,0.999,0.358,0.997,0.411,0.942,0.41,0.906,0.407,0.847,0.405,0.786
inertia: 3
loitering_time: 0
review:
alerts:
required_zones:
- MD-Front_door
- MD-StreetInOut
- MD-From_driveway
Side_Door: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Side_Door
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Side_Door_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.85
threshold: 0.9
dog:
mask: 0.305,0.084,0.5,0.047,0.51,0.404,0.323,0.413
cat:
mask: 0.307,0.098,0.5,0.057,0.508,0.409,0.326,0.419
record: # what you want Frigate to record
enabled: true
retain:
days: 5
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
0.587,0,0.803,0,1,0,0.999,0.202,0.997,0.719,0.845,0.425,0.857,0.174,0.858,0.098,0.588,0.079
zones:
SD-Front_gate:
coordinates: 0.59,0.082,0.769,0.102,0.768,0.36,0.741,0.68,0.612,0.673,0.612,0.481,0.595,0.459
inertia: 3
loitering_time: 0
SD-Patio:
coordinates:
0.612,0.692,0.746,0.689,0.758,0.744,0.805,0.744,0.865,1,0.245,0.999,0.282,0.818,0.605,0.861
inertia: 3
loitering_time: 0
SD-Floor_area:
coordinates: 0.819,0.643,0.874,0.628,0.997,0.997,0.867,0.996,0.805,0.736
inertia: 3
loitering_time: 0
review:
alerts:
required_zones:
- SD-Front_gate
- SD-Patio
- SD-Floor_area
Garden: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Garden
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Garden_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1280
height: 720
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.85
threshold: 0.9
record: # what you want Frigate to record
enabled: true
retain:
days: 3
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
- 0.002,0,0.002,0.902,0.164,0.588,0.423,0.239,0.46,0.223,0.531,0.203,0.532,0,0.345,0
- 0.605,0.044,0.705,0,0.997,0,0.997,0.997,0.802,0.999,0.619,0.332
zones:
GDN-Veggie_patch:
coordinates:
0.318,0.162,0.314,0.36,0.39,0.264,0.454,0.216,0.506,0.206,0.452,0.184,0.349,0.156
inertia: 3
loitering_time: 0
GDN-Concrete:
coordinates: 0.168,0.762,0.067,1,0.797,1,0.732,0.789,0.434,0.807
inertia: 3
loitering_time: 0
GDN-Grass:
coordinates:
0.161,0.751,0.284,0.505,0.348,0.388,0.394,0.311,0.453,0.262,0.487,0.25,0.519,0.246,0.556,0.254,0.6,0.256,0.618,0.335,0.732,0.784,0.437,0.8
inertia: 3
loitering_time: 0
review:
alerts:
required_zones:
- GDN-Veggie_patch
- GDN-Concrete
- GDN-Grass
Main_Bed_Room: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Main_Bed_Room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Main_Bed_Room_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1280
height: 720
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.85
threshold: 0.9
record: # what you want Frigate to record
enabled: true
retain:
days: 3
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
- 0.002,0.001,1,0,1,0.111,0.425,0.087,0.42,0.194,0.219,0.248,0.212,0.197,0,0.234
- 0.451,0.195,0.446,0.374,0.556,0.427,0.561,0.347,0.567,0.184
zones:
MBR-Far:
coordinates:
0.615,0.303,0.562,0.347,0.553,0.514,0.871,0.768,0.926,0.496,0.886,0.342,0.891,0.234,0.654,0.175
inertia: 3
loitering_time: 0
MBR-Patio:
coordinates:
0.211,0.564,0.001,0.706,0,0.999,0.345,0.999,0.793,1,0.868,0.791,0.732,0.648,0.55,0.518,0.469,0.526,0.242,0.537
inertia: 3
loitering_time: 0
review:
alerts:
required_zones:
- MBR-Far
- MBR-Patio
Garage_Back_Door: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Garage_Back_Door
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Garage_Back_Door_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1280
height: 720
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
min_score: 0.85
threshold: 0.9
record: # what you want Frigate to record
enabled: true
retain:
days: 3
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
- 0.419,1,0.458,1,0.541,0.135,0.571,0.13,0.568,0,0.291,0
- 0.648,0,0.596,0,0.718,0.677,0.83,0.592,0.814,0.256,0.84,0.186,0.795,0.131
zones:
GBD-Floor_area:
coordinates: 0.545,0.135,0.619,0.12,0.639,0.237,0.72,0.68,0.775,0.638,0.824,1,0.461,1
inertia: 3
loitering_time: 0
review:
alerts:
required_zones: GBD-Floor_area
Meter_Box: # <------ Name the camera ########################################
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Meter_Box
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Meter_Box_Sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- car
filters:
person:
min_score: 0.85
threshold: 0.9
mask:
0.563,0.303,0.576,0.301,0.565,0.219,0.569,0.181,0.581,0.145,0.536,0.147,0.545,0.18,0.55,0.213
cat:
mask: 0,0,0.275,0,0.286,0.207,0.006,0.314
dog:
mask: 0,0,0.275,0,0.286,0.207,0.006,0.314
car: {}
record: # what you want Frigate to record
enabled: true
retain:
days: 5
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
snapshots:
enabled: true
retain:
default: 15
crop: true
height: 500
bounding_box: true
motion:
mask:
- 0.007,0.312,0.204,0.243,0.218,0.373,0.027,0.51
- 0.239,0.366,0.201,0.138,0.253,0.093,0.325,0.063,0.372,0.041,0.422,0.039,0.453,0.041,0.457,0.097,0.46,0.208,0.426,0.279
- 0.633,0.003,0.59,0.063,0.582,0.106,0.633,0.074,0.657,0.083,0.666,0.128,0.631,0.132,0.614,0.107,0.618,0.151,0.591,0.179,0.513,0.188,0.508,0.15,0.476,0.153,0.468,0.115,0.465,0.066,0.464,0.038,0.448,0.027,0.425,0.021,0.425,0.004
- 0.049,0.067,0.119,0.066,0.142,0.132,0.144,0.194,0.098,0.232,0.079,0.228,0.049,0.212,0.028,0.245,0.023,0.269,0,0.278,0.002,0.067
zones:
MtrB-Floor_area:
coordinates: 0.171,0.709,0.376,0.714,0.499,0.796,0.331,0.997,0.182,1,0.149,0.902,0.113,0.773
inertia: 3
loitering_time: 0
objects:
- cat
- dog
- person
MtrB-Street_inwards:
coordinates: 0.587,0.187,0.471,0.199,0.425,0.285,0.589,0.321,0.755,0.347,0.755,0.196
inertia: 3
loitering_time: 0
objects:
- cat
- dog
- person
MtrB-GrnPatch:
coordinates:
0.427,0.285,0.534,0.308,0.628,0.33,0.705,0.339,0.758,0.347,0.751,0,1,0,1,0.921,0.593,0.697,0.365,0.59,0.242,0.586,0.15,0.593,0.159,0.634,0.067,0.73,0.047,0.625,0.026,0.515,0.223,0.374
loitering_time: 0
objects:
- cat
- dog
- person
inertia: 3
review:
alerts:
required_zones:
- MtrB-Floor_area
- MtrB-Street_inwards
version: 0.15-0
camera_groups:
Front_Cameras:
order: 1
icon: LuArrowsUpFromLine
cameras:
- Drive_Way
- Main_Door
- Meter_Box
Back_Cameras:
order: 2
icon: LuArrowDownToDot
cameras:
- Garden
- Main_Bed_Room
- Garage_Back_Door
Side_door:
order: 3
icon: LuArrowBigRightDash
cameras: Side_Door
semantic_search:
enabled: true
reindex: false
model_size: large Relevant Frigate log output2025-01-04 16:19:35.371848400 [INFO] Preparing Frigate...
2025-01-04 16:19:35.413039012 [INFO] Starting Frigate...
2025-01-04 16:19:38.727355368 [2025-01-04 16:19:38] frigate.util.config INFO : Checking if frigate config needs migration...
2025-01-04 16:19:38.833444338 [2025-01-04 16:19:38] frigate.util.config INFO : frigate config does not need migration...
2025-01-04 16:19:38.957423836 [2025-01-04 16:19:38] frigate.app INFO : Starting Frigate (0.15.0-87e7b62)
2025-01-04 16:19:38.974098845 [2025-01-04 16:19:38] peewee_migrate.logs INFO : Starting migrations
2025-01-04 16:19:38.974350200 [2025-01-04 16:19:38] peewee_migrate.logs INFO : There is nothing to migrate
2025-01-04 16:19:39.007044928 [2025-01-04 16:19:39] frigate.app INFO : Recording process started: 356
2025-01-04 16:19:39.007301678 [2025-01-04 16:19:39] frigate.app INFO : Review process started: 358
2025-01-04 16:19:39.009590697 [2025-01-04 16:19:39] frigate.app INFO : go2rtc process pid: 93
2025-01-04 16:19:39.023295170 [2025-01-04 16:19:39] detector.ov INFO : Starting detection process: 372
2025-01-04 16:19:39.023664402 [2025-01-04 16:19:39] frigate.app INFO : Embedding process started: 374
2025-01-04 16:19:39.037452042 [2025-01-04 16:19:39] frigate.app INFO : Output process started: 394
2025-01-04 16:19:39.331557466 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Drive_Way: 410
2025-01-04 16:19:39.331717671 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Main_Door: 411
2025-01-04 16:19:39.339005468 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Side_Door: 419
2025-01-04 16:19:39.352968981 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Garden: 427
2025-01-04 16:19:39.353807454 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Main_Bed_Room: 437
2025-01-04 16:19:39.361041006 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Garage_Back_Door: 448
2025-01-04 16:19:39.368537101 [2025-01-04 16:19:39] frigate.app INFO : Camera processor started for Meter_Box: 454
2025-01-04 16:19:39.387359777 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Drive_Way: 468
2025-01-04 16:19:39.396109259 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Main_Door: 484
2025-01-04 16:19:39.404083200 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Side_Door: 488
2025-01-04 16:19:39.423360898 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Garden: 501
2025-01-04 16:19:39.433025181 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Main_Bed_Room: 506
2025-01-04 16:19:39.442319092 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Garage_Back_Door: 511
2025-01-04 16:19:39.453341751 [2025-01-04 16:19:39] frigate.app INFO : Capture process started for Meter_Box: 516
2025-01-04 16:19:39.806174844 [2025-01-04 16:19:39] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-01-04 16:19:39.962596323 [2025-01-04 16:19:39] frigate.api.fastapi_app INFO : FastAPI started
2025-01-04 16:19:44.222408143 [2025-01-04 16:19:44] frigate.util.services ERROR : Unable to poll intel GPU stats: Failed to initialize PMU! (Operation not permitted)
2025-01-04 16:49:14.095649 2025-01-04 16:19:44.222414745 Relevant go2rtc log output2025-01-04 16:19:35.371398310 [INFO] Preparing new go2rtc config...
2025-01-04 16:19:36.049200755 [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one
2025-01-04 16:19:36.049203931 [INFO] Starting go2rtc...
2025-01-04 16:19:36.122405341 16:19:36.122 INF go2rtc platform=linux/amd64 revision=dbe9e4a version=1.9.7
2025-01-04 16:19:36.122408295 16:19:36.122 INF config path=/dev/shm/go2rtc.yaml
2025-01-04 16:19:36.122976826 16:19:36.122 INF [api] listen addr=:1984
2025-01-04 16:19:36.123159498 16:19:36.123 INF [rtsp] listen addr=:8554
2025-01-04 16:19:36.123419326 16:19:36.123 INF [webrtc] listen addr=:8555/tcp
2025-01-04 16:19:45.373009550 [INFO] Starting go2rtc healthcheck service... FFprobe output from your camera[{"return_code":0,"stderr":"","stdout":{"programs":[],"stream_groups":[],"streams":[{"codec_long_name":"H.265 / HEVC (High Efficiency Video Coding)","width":3840,"height":2160,"avg_frame_rate":"25/1"},{"codec_long_name":"AAC (Advanced Audio Coding)","avg_frame_rate":"0/0"}]}},{"return_code":0,"stderr":"","stdout":{"programs":[],"stream_groups":[],"streams":[{"codec_long_name":"H.265 / HEVC (High Efficiency Video Coding)","width":1920,"height":1080,"avg_frame_rate":"5/1"}]}}] Frigate statsNo response Operating systemHassOS Install methodProxmox via Docker Object DetectorOpenVino Network connectionWired Camera make and modelDahua (DH-IPC-HDW3849H-AS-PV-ANZ) Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Add a second stream without #backchannel=0 |
Beta Was this translation helpful? Give feedback.
-
Hey, I can confirm the same problem. https://github.com/AlexxIT/go2rtc?tab=readme-ov-file#two-way-audio I did add the following to my config: dahua_camera: I have the same issue as @itplace I can enable two way audio but then the video is gone and the loading circle is showing forever. |
Beta Was this translation helpful? Give feedback.
-
I'm new to Frigate/go2rtc but this seems to work for me:
It seems to be important that backchannel under go2rtc always uses This works with the live stream configured to use either the main stream or the sub stream (both work). This is a complete config.yaml file that works for me (except the password was changed). mqtt:
enabled: false
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
snapshots:
enabled: true
record:
enabled: true
retain:
days: 3
mode: all
alerts:
retain:
days: 30
mode: motion
detections:
retain:
days: 30
mode: motion
go2rtc:
webrtc:
candidates:
- "stun:8555"
streams:
cam3-dahua:
- "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&proto=Onvif"
- "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&proto=Onvif#backchannel=1"
- "ffmpeg:cam3-dahua#audio=opus"
cam3-dahua-sub:
- "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1&proto=Onvif"
- "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&proto=Onvif#backchannel=1"
- "ffmpeg:cam3-dahua-sub#audio=opus"
cameras:
cam3-dahua:
enabled: true
live:
stream_name: cam3-dahua-sub
#stream_name: cam3-dahua
audio:
enabled: true
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/cam3-dahua
input_args: preset-rtsp-restream
roles:
- record
- audio
- path: rtsp://127.0.0.1:8554/cam3-dahua-sub
input_args: preset-rtsp-restream
roles:
- detect
version: 0.15-1 |
Beta Was this translation helpful? Give feedback.
Add a second stream without #backchannel=0