fix(cameras): transcode E1 audio to AAC in go2rtc so MSE live view stops falling back
neolink emits raw PCM (L16) audio; browser MSE only plays AAC/PCMA/PCMU, so the main-stream player stalled and Frigate dropped to the low-res view. Video is copied. Recording now copies the AAC instead of transcoding again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
abf17cbf24
commit
985a6ddc43
1 file changed
+7
-4
@@ -29,12 +29,15 @@ model:
|
|||||||
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
||||||
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
||||||
|
|
||||||
|
# neolink delivers the E1's audio as raw PCM (L16/16000/2). Browser MSE only plays AAC or
|
||||||
|
# PCMA/PCMU, so the live player stalled and Frigate fell back to the low-res view until a
|
||||||
|
# manual "refresh stream". go2rtc's ffmpeg copies the video and transcodes audio to AAC.
|
||||||
go2rtc:
|
go2rtc:
|
||||||
streams:
|
streams:
|
||||||
e1:
|
e1:
|
||||||
- rtsp://neolink:8554/e1/mainStream
|
- "ffmpeg:rtsp://neolink:8554/e1/mainStream#video=copy#audio=aac"
|
||||||
e1_sub:
|
e1_sub:
|
||||||
- rtsp://neolink:8554/e1/subStream
|
- "ffmpeg:rtsp://neolink:8554/e1/subStream#video=copy#audio=aac"
|
||||||
|
|
||||||
# Recordings → /media/frigate/recordings = /storage1/labdata/frigate/recordings.
|
# Recordings → /media/frigate/recordings = /storage1/labdata/frigate/recordings.
|
||||||
# Main stream 24/7 ≈ 4.2 Mbps ≈ 44 GB/day (measured 2026-10-08) → ~310 GB rolling at 7 d.
|
# Main stream 24/7 ≈ 4.2 Mbps ≈ 44 GB/day (measured 2026-10-08) → ~310 GB rolling at 7 d.
|
||||||
@@ -68,12 +71,12 @@ cameras:
|
|||||||
- path: rtsp://127.0.0.1:8554/e1_sub
|
- path: rtsp://127.0.0.1:8554/e1_sub
|
||||||
input_args: preset-rtsp-restream
|
input_args: preset-rtsp-restream
|
||||||
roles: [detect]
|
roles: [detect]
|
||||||
# Record full res. E1 audio is pcm_s16be, which mp4 can't carry → transcode to AAC.
|
# Record full res. The e1 restream already carries AAC (see go2rtc above) → copy it.
|
||||||
- path: rtsp://127.0.0.1:8554/e1
|
- path: rtsp://127.0.0.1:8554/e1
|
||||||
input_args: preset-rtsp-restream
|
input_args: preset-rtsp-restream
|
||||||
roles: [record]
|
roles: [record]
|
||||||
output_args:
|
output_args:
|
||||||
record: preset-record-generic-audio-aac
|
record: preset-record-generic-audio-copy
|
||||||
detect:
|
detect:
|
||||||
# Frigate >=0.14 defaults detect.enabled to false — without this nothing is detected.
|
# Frigate >=0.14 defaults detect.enabled to false — without this nothing is detected.
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in new issue
Block a user