I’ve got it all set up using the lower res 4096*1248
stream so it uses H264. The last thing I cant seem to get working in the front end and recordings is the audio. FWIW, the audio is working in zoneminder and reolink app for this camera. My other cameras are also recording audio and have the audio toggle button in frigate live view.
I have the frontend served with a valid cert for my public domain, same behaviour using http/s. Tried different output presets without luck. Its strange that its just this camera that I cant get audio to work.
One interesting note is that I also don’t get a PiP button for the duo 2, all other cameras have the PiP and audio buttons that I can toggle.
Any advice is appreciated!
config
ffmpeg:
hwaccel_args: preset-nvidia
input_args: preset-rtsp-restream-low-latency
output_args:
record: preset-record-generic-audio-copy
go2rtc:
streams:
duo2v:
- ffmpeg:rtsp://admin:[email protected]/h264Preview_01_main#video=copy#audio=copy
- ffmpeg:duo2v_sub#audio=opus
duo2v_sub:
- ffmpeg:rtsp://admin:[email protected]/h264Preview_01_sub#video=copy#audio=copy # <--- AAC audio
# WebRTC needs opus audio codec
- ffmpeg:duo2v_sub#audio=opus
cameras:
alley:
enabled: true
genai:
enabled: false
use_snapshot: true
objects:
- person
required_zones:
- alleyway
- parking
ffmpeg:
# hwaccel_args: preset-nvidia
# output_args:
# record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/duo2v
input_args: preset-rtsp-restream
roles:
# - detect
- record
- audio
- path: rtsp://127.0.0.1:8554/duo2v_sub
input_args: preset-rtsp-restream
roles:
- detect
ffprobe
output
Input #0, rtsp, from 'rtsp://10.0.1.14:8554/duo2v':
Metadata:
title : go2rtc/1.9.2
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(progressive), 4096x1248, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp