Hikvision AAC Support for 16Beta #19365
-
|
Ive been running G.711ulaw with h265 video encoding on my hikvision cameras fine since maybe version 12 using h265. I've recently upgraded to some g3 cameras and all is good. With the latest release I want to try and get native AAC to work with both live and recording feeds. Live audio works but recordings are still not working. I am changing the following but not sure if im doing this correctly. I'd like to try and maintain h265 if possible but would consider going back to h264. 2025-08-02 14:28:22.891635316 [2025-08-02 14:28:22] watchdog.street ERROR : No new recording segments were created for street in the last 120s. restarting the ffmpeg record process... |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
|
For Hikvision cameras and AAC audio support in Frigate, here are key points based on the documentation:
Summary of recommended configuration for your case:
For more details, see: 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
Ive made some progress with the auto reply. Will see if I can get all the cameras sorted. This system is great. |
Beta Was this translation helpful? Give feedback.
-
|
Got it sorted. Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
why restream? rhanks
Andres Roepke
…On Fri, Aug 8, 2025 at 00:19 Christian ***@***.***> wrote:
yeah it's more about filtering out a lot of repetitive work. It's probably
2 thousand lines. Here's a single cam. keep in mind you have to create a
camera user with remote live view and make sure they're "activated". You
have to login as that user to the cam ui. I've also had to reboot my camera
for that user setting to take effect. I use a custom rtsp port. I'm using
intel 265k Ultra CPU. Works with both coral and openvino.
Hope this helps:
mqtt:
enabled: true
host: hostname
port: port
user: user
password: password
birdseye:
enabled: true
mode: continuous
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-copy
detectors:
coral:
type: edgetpu
device: pci
#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
#logger:
# default: info
# logs:
# frigate.events.audio: debug
snapshots:
enabled: true
timestamp: true
retain:
default: 60
record:
sync_recordings: true
go2rtc:
rtsp:
username: username
password: password
streams:
street_main:
- ***@***.***_ip:8539/Streaming/channels/101
street_sub:
- ***@***.***_ip:8539/Streaming/channels/102
street:
live:
streams:
street_main: street_main
ui:
order: 2
birdseye:
order: 2
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/street_main?video&audio # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/street_sub?video&audio # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-restream
roles:
- detect
- audio
audio:
enabled: true
max_not_heard: 30
min_volume: 200
listen:
- bark
- fire_alarm
- scream
- speech
- yell
filters:
bark:
threshold: 0.5
objects:
track:
- person
- car
- bicycle
- motorcycle
- dog
- cat
- mouse
detect:
enabled: true
width: 1280
height: 720
fps: 5
record:
enabled: true
retain:
days: 21
mode: all
alerts:
retain:
days: 120
detections:
retain:
days: 120
—
Reply to this email directly, view it on GitHub
<#19365 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIOTKWW6QKTYTT74P5AU27L3MQQNVAVCNFSM6AAAAACC7EX5KSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBUGIYDKNI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
mqtt: #environment_vars: # esto es para las amd LIBVA_DRIVER_NAME: radeonsiobjects: Optional: list of objects to track from labelmap.txt (default: shown below)track: filters: review: detections: record: ffmpeg: go2rtc: webrtc: cameras: Reolinkduo21: mqtt:timestamp: falsebounding_box: falsecrop: truequality: 100height: 720EntradaCasa: detectors: database: birdseye: #ui: live_mode: mseversion: 0.16-0 semantic_search: |
Beta Was this translation helpful? Give feedback.
-
|
sorry! im sharing my yaml.. for some reason the hikvision camera send me
logs errors
Andres Roepke
…On Fri, Aug 8, 2025 at 17:09 Christian ***@***.***> wrote:
Is there a question here?
Please wrap your config in the code ticks ```. Hard to read.
—
Reply to this email directly, view it on GitHub
<#19365 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIOTKWSS4PO4QVAH6ZXEAT33MUGZ3AVCNFSM6AAAAACC7EX5KSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBVGE3DKNA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
error | 2025-08-08 17:43:43 | frigate.video | EntradaCasa: Unable to read
frames from ffmpeg process.
error | 2025-08-08 17:43:43 | frigate.video | EntradaCasa: ffmpeg process
is not running. exiting capture thread...
error | 2025-08-08 17:43:46 | watchdog.EntradaCasa | Ffmpeg process crashed
unexpectedly for EntradaCasa.
error | 2025-08-08 17:43:46 | watchdog.EntradaCasa | The following ffmpeg
logs include the last 100 lines prior to exit.
error | 2025-08-08 17:43:46 | ffmpeg.EntradaCasa.detect |
[AVHWFramesContext @ 0x7f8e5c017940] Failed to sync surface 0x15: 1
(operation failed).
error | 2025-08-08 17:43:46 | ffmpeg.EntradaCasa.detect | [hwdownload @
0x7f8e58003980] Failed to download frame: -5.
error | 2025-08-08 17:43:46 | ffmpeg.EntradaCasa.detect | [vf#0:0 @
0x55b60ff21880] Error while filtering: Input/output error
error | 2025-08-08 17:43:46 | ffmpeg.EntradaCasa.detect | [vf#0:0 @
0x55b60ff21880] Task finished with error code: -5 (Input/output error)
error | 2025-08-08 17:43:46 | ffmpeg.EntradaCasa.detect | [vf#0:0 @
0x55b60ff21880] Terminating thread with return code -5 (Input/output error)
info | 2025-08-08 17:43:46 | watchdog.EntradaCasa | Restarting ffmpeg...
Andres Roepke
…On Fri, Aug 8, 2025 at 17:42 Andres Roepke ***@***.***> wrote:
sorry! im sharing my yaml.. for some reason the hikvision camera send me
logs errors
Andres Roepke
On Fri, Aug 8, 2025 at 17:09 Christian ***@***.***> wrote:
> Is there a question here?
>
> Please wrap your config in the code ticks ```. Hard to read.
>
> —
> Reply to this email directly, view it on GitHub
> <#19365 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIOTKWSS4PO4QVAH6ZXEAT33MUGZ3AVCNFSM6AAAAACC7EX5KSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBVGE3DKNA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***
> com>
>
|
Beta Was this translation helpful? Give feedback.
Got it sorted. Thank you!