maciej-or / hikvision_next

Home Assistant integration for Hikvision NVRs and IP cameras
115 stars 23 forks source link

Home Assistant say the cameras are inatives/non available but every time I reload the page I see the last frame. #209

Open saldain opened 2 months ago

saldain commented 2 months ago

hik1 imagen

I have this problem with a DVR iDS-7204HUHI-M1 / E Firmwares I tried :

H.264 is active for every camera ONVIF is active to.

thanks in advance

saldain commented 2 months ago

I was checking the console then I see this:

2024-09-25 17:18:57.925 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.ids_7204huhi_m1_e0420230926ccwrah1681421wcvu_101] Error from stream worker: No dts in 7 consecutive packets

saldain commented 2 months ago

This is the diagnostic data config_entry-hikvision_next-01J8ND2XDGRN290SXH7KR7F3C0.json

saldain commented 2 months ago

imagen Some new error on the console

maciej-or commented 2 months ago

please check the codec used to transcode analog cameras, should be H264, H265 may not be supported

saldain commented 2 months ago

please check the codec used to transcode analog cameras, should be H264, H265 may not be supported

Checked, there are at H264, all cameras.

maciej-or commented 2 months ago

try to open the stream in VLC using URL like: rtsp://<username>:<password>@<IP address of device>:554/Streaming/channels/101 to check if the stream is correct

saldain commented 2 months ago

This is what I get imagen We can see that it works but not correctly imagen

This is the config for every camera imagen

maciej-or commented 2 months ago

these settings look good, there must be something else that is messing up the stream

saldain commented 1 month ago

I found a radical but effective solution. I did a factory reset and everything works now. Only change i made to make ir work on the Browser is hanging the default H265 to H264. Thanks for everything. imagen

maciej-or commented 1 month ago

thanks for sharing solution even a radical one :)

UMB8998 commented 3 weeks ago

I had the exact same problem, the way to fix it is by disabling the encryption on the stream.

Basically once you add the cameras to HIK-Connect it activates the stream encryption and there is no way to live watch the feed, the way to handle this is to go into Network-Advanced Options-Platform Access and there uncheck the stream encryption, that would fix this issue.