loocd
April 3, 2025, 4:12pm
1
Hi all,
I’ve recently gotten started using Frigate and it mostly works great, with a few hick-ups along the way.
BUT: I just cannot get audio to work. Neither in the recordings nor in the live stream, it’s just always without sound.
I’m checking the streams/audio straight from within Frigate, so definitely not a card issue or similar.
I’ve tried the frigate addon as well as a standalone frigate server running on docker
I’ve tried a Reolink cam as well as multiple Tapo cams
I’ve checked the stream in the reolink/tapo apps where I do get audio
I’ve checked the stream from within VLC where I do get audio
This is my frigate.yml/config.yml:
mqtt:
enabled: true
host: xxx.xxx.x.x
user: username
password: password
topic_prefix: frigate
client_id: frigate
stats_interval: 60
# Optional: Detectors configuration. Defaults to a single CPU detector
detectors:
# Required: name of the detector
cpu:
type: cpu
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-aac
birdseye: [removed, likely irrelevant]
objects: [removed, likely irrelevant]
snapshots: [removed, likely irrelevant]
timestamp_style: [removed, likely irrelevant]
go2rtc:
streams:
Wohnzimmer:
- rtsp://username:[email protected] :554/stream1
- "ffmpeg:wohnzimmer#audio=aac"
Wohnzimmer_sub:
- rtsp://username:[email protected] :554/stream2
cameras:
Wohnzimmer:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Wohnzimmer
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Wohnzimmer_sub
input_args: preset-rtsp-restream
roles:
- detect
onvif: [removed, likely irrelevant]
detect:
width: 640
height: 360
fps: 5
record:
enabled: true
retain:
days: 5
alerts:
retain:
days: 30
detections:
retain:
days: 30
version: 0.15-1
I feel like I’ve done exactly what is written in the documentation and what is recommended in other similar forum posts.
Can you help me fix this?
loocd
April 3, 2025, 4:23pm
2
ok so I have no idea what happened, but I suddenly have audio in the live stream. I only added a second camera and restarted frigate.
But I still don’t have audio in my recordings.
Tamsy
(Tamsy)
April 4, 2025, 12:41am
3
Change:
cameras:
Wohnzimmer:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Wohnzimmer
input_args: preset-rtsp-restream
roles:
- record
to:
cameras:
Wohnzimmer:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Wohnzimmer?audio&video
input_args: preset-rtsp-restream
roles:
- record
loocd
April 4, 2025, 7:23am
4
that seems to have worked, thanks! I’ll keep watching this and might report back if I’m experiencing any issues
1 Like
loocd
April 4, 2025, 9:09am
5
@Tamsy
Do you maybe have some more expert insight for me with the other config I tried (HA addon)?
I got audio in recordings working with this
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
But there is still no sound in the live view despite having go2rtc configured.
I’ve also noticed that the live stream is extremely bad quality - it seems as if it’s taking the detect stream instead of the record stream.
mqtt:
enabled: true
host: core-mosquitto
user: user
password: pw
topic_prefix: frigate
client_id: frigate
stats_interval: 30
detectors:
type: cpu
ffmpeg:
hwaccel_args: preset-rpi-64-h264
output_args:
record: preset-record-generic-audio-aac
birdseye: [removed, likely irrelevant]
objects: [removed, likely irrelevant]
snapshots: [removed, likely irrelevant]
timestamp_style: [removed, likely irrelevant]
go2rtc:
streams:
# reolink cam, according to ffprobe has an aac audio stream
kinderzimmer:
- rtsp://username:[email protected] :554/h265Preview_01_main
kinderzimmer_sub:
- rtsp://username:[email protected] ::554/h265Preview_01_sub
# tapo cam, according to ffprobe has a pcm_alaw audio stream
kueche:
- rtsp://username:[email protected] ::554/stream1
- ffmpeg:kueche#audio=aac
kueche_sub:
- rtsp://username:[email protected] ::554/stream2
cameras:
Kinderzimmer:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/kinderzimmer?audio&video
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/kinderzimmer_sub
input_args: preset-rtsp-restream
roles:
- detect
onvif: [removed, likely irrelevant]
detect:
width: 640
height: 480
fps: 7
record:
enabled: true
retain:
days: 5
alerts:
retain:
days: 30
detections:
retain:
days: 30
motion:
mask: 0,-0.001,0,0.059,0.316,0.057,0.316,0
Kueche:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/kueche?audio&video
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/kueche_sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 640
height: 360
fps: 5
record:
enabled: true
retain:
days: 5
alerts:
retain:
days: 30
detections:
retain:
days: 30
version: 0.15-1
Tamsy
(Tamsy)
April 4, 2025, 12:00pm
6
Just add ?audio&video
to the detect
-stream like you did with the record
-stream like this:
cameras:
Wohnzimmer:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Wohnzimmer?audio&video
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Wohnzimmer_sub?audio&video
input_args: preset-rtsp-restream
roles:
- detect
Then add:
live:
stream_name: Wohnzimmer
to define the record-stream for live view.
crzynik
(Nicolas Mowen)
April 4, 2025, 6:01pm
7
The W should be capitalized
loocd
April 6, 2025, 1:54pm
8
It seems I’ve gotten it to work, thank you @crzynik and @Tamsy !!
I’ve changed everything to first-letter-capitalized just to make sure it’s the same everywhere, I added audio&video to the detect stream, plus I’ve also noticed through ffprobe that my streamy are h264, not h265 (I had initially followed a guide). With this it seems that setting the live stream manually isn’t even necessary anymore
I made a couple changes at ones, to not sure which accounted to what, but this seems to be it - again, thank you so much! Slowly getting the hang of this
2 Likes