[Camera Support]: main stream on Anpviz IPC-D363WD-SA unreliable and no sound #10179
-
Describe the problem you are havingI am experiencing difficulty configuring an Anpviz IPC-D363WD-SA camera in Frigate running on a docker container in Ubuntu 23.10 on bare metal. The problem is that the main stream which goes through go2rtc isn't working properly. If I view this stream in the Frigate web gui, it takes a long time to load using webrtc and even then the video feed is about 10 seconds delayed. If I try mse, then I can get it to load one frame pretty quickly but after than nothing. There is also no sound. In comparison, the substream works fine, but I don't stream it through go2rt. It gets pulled into Frigate directly. Both the main stream and substream are H.264. But as you can see from the log below, there is an error saying I am at a loss about the cause of the problem. I searched the discussion board but to no avail. I am hoping someone can point out the mistake I am making in the config file. I assume I am overlooking something. Version0.13.2-6476F8A Frigate config filemqtt:
enabled: False
detectors:
coral:
type: edgetpu
device: usb
record:
enabled: True
retain:
days: 14
mode: all
events:
retain:
default: 7
mode: motion
go2rtc:
streams:
cam101:
- "ffmpeg:rtsp://username:password@192.168.15.101:554/stream0/"
- "isapi://username:password@192.168.15.101:80/"
webrtc:
candidates:
- 192.168.15.3:8555
- stun:8555
cameras:
cam101:
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/cam101
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://username:password@192.168.15.101/stream1/
roles:
- detect
detect:
enabled: True
width: 704
height: 480
fps: 5
objects:
track:
- person
record:
enabled: True
snapshots:
enabled: True
timestamp: False
bounding_box: True
retain:
default: 14
FFprobe output from your cameraStream 0:
Return Code: 0
Video:
Codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Resolution: 3072x2048
FPS: 20/1
Audio:
Codec: AAC (Advanced Audio Coding)
Stream 1:
Return Code: 0
Video:
Codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Resolution: 704x576
FPS: 5/1
Audio:
Codec: AAC (Advanced Audio Coding) Frigate statsNo response Operating systemOther Install methodDocker Compose Coral versionUSB Network connectionWired Camera make and modelAnpviz IPC-D363WD-SA Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I get a similar error if I pull the main stream into Frigate directly to record:
|
Beta Was this translation helpful? Give feedback.
-
Frigate seems to be losing the connection with the camera. The recording drops intermittently and then Frigate restarts ffmpeg after detecting no new recordings for 120 seconds. Then it records for a bit and then stops. Frigate restarts ffmpeg again after 120 seconds of no new recordings. And there is never any audio. This happens when I set the camera to encode in either H264 or H265. What is going on? |
Beta Was this translation helpful? Give feedback.
Solved! @NickM-27 points out that his Hikvision camera only works with two-way audio if the audio encoding is G711ulaw (AlexxIT/go2rtc#972). I believe my friends' Anpviz cameras are Hikvision clones. So I changed the encoding to G711 from AAC in the camera GUI. I made the change and now Frigate is recording all of these Anpviz cameras and I can view them using MSE.