go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Buggy Hikvision Camera

Open LckySndays opened this issue 3 weeks ago • 4 comments

I think I have this one of many buggy rtsp chinese version hikvision camera (Hikvision DS-2CD3367WDV3-L) that I always have problem with for years. it used to be so bad that I cant get it to working correctly on frigate

when accessing the camera live feed via its own web GUI or via VLC, it seems that it can be played without problem but after a while frigate failed to show the live feed while it is still accessible on web GUI or VLC player

after doing lot of observation, I found out that most of the time the problem only occurred on night time and later found out that most of the camera that I have problem with has exposure time set to 1/3 due to no light condition at all during night

I also found out that whenever the frigate failed to show the live feed, I can fixed it most of the time by lowering the exposure time to 1/25 for example

fast forward years later, both go2rtc and frigate have improved so much that most of the problem seems to be fixed and the camera is usable now the frigate can always stream the live feed of this buggy CCTV correctly without any error no matter its day or night

there is only small problem right now that when I use frigate for continuous recording, the frigate watchdog always throw this error

ERROR   : No new recording segments were created for cam_name in the last 120s. Restarting the ffmpeg record process...

and then proceed to restart the ffmpeg record process and when it killed the process, the recording file is generated and can be played without error, it just that its not being segmented successfully into 10s files instead it keep recorded for longer time until the watchdog killed the process and guest what, the error is always happened during the night time as previously mentioned problem, so I think the camera might sent bad data or something that caused the whole issue

I had tried to use ffmpeg for the input

-  ffmpeg:rtsp://user:[email protected]:554/Streaming/Channels/102
or
- rtsp://user:[email protected]:554/Streaming/Channels/102
- ffmpeg:cam_name#video=h264#audio=opus

I also tried to re encode the recording output from using frigate preset-record-generic-audio-copy

-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:a copy

to av1 format using av1_nvenc without any luck as well

-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v av1_nvenc -preset p1 -tune hq -delay 0 -zerolatency 1 -rc cbr -split_encode_mode disabled -c:a copy

I already sent you discord request for pinngy tunnel access for debugging purpose. I hope you can help me to resolve the issue

Related: https://github.com/AlexxIT/go2rtc/issues/211

LckySndays avatar Dec 09 '25 02:12 LckySndays