Unable to get Annke cameras to work via RTSP

I just installed an Annke N48K NVR along with some C500 cameras and can’t seem to be able to get them to work with HA, perhaps someone has figured out the correct config.

The following rtps url works just fine in VLC so I know it is correct:
rtsp://USER:[email protected]:554/Streaming/Channels/101 for main stream and rtsp://USER:[email protected]:554/Streaming/Channels/102 for substream.

This is how I am trying to add them (secret is -rtsp_transport tcp -i rtsp://USER:[email protected]:554/Streaming/Channels/101:

camera:
- platform: ffmpeg
  name: Front Right
  input: !secret front_camera_right
- platform: ffmpeg
  name: Front Right Low Q
  input: !secret front_camera_right_low_q

They get created in HA but just showing black

Is my config wrong or is it because the stream is H265 and this is a browser issue, read that somewhere

I have some Annke cameras set up at my parents’ house which utilise ZoneMinder and then feed into HA. I ended up having to use:

rtsp://USR:[email protected]:554

Although it worked with /Streaming/Channels/xxx in VLC, ZM didn’t seem to like it. It may be the same issue? I forget the model numbers but can check in later and find out.

That probably won’t work since the cameras do not have their own IP, I need to change the end part Streaming/Channels/101 camera 1, Streaming/Channels/201 camera 2, etc
Also read somewhere that browsers do not like h265 (when I set up the cameras I had to download some plugin for chrome) will try h264 as well

Ah, I see. We ended up scrapping the supplied DVR due to the PSU dying after about 7 weeks and trying to converse with their support team was somewhat challenging.

They work wonderfully with ZM if you do end up in the same boat.

Brand new 8ch NVR so hoping to use it :smiley:
Having trouble enabling onvif which would work better however

It seems to be this actually Stream - Home Assistant
Works ok on my android phone, my chrome desktop HA page doesn’t
I wonder are there any work arounds?

Have you tried adding the repo and updating the package as suggested?

No because I am not seeing those errors, it does work ok on android but just not on chrome it seems so the problem is there.

Changed the camera from H265 to H264 and works across devices now.

Sorry to re open almost 1 year after. How do you change H265 to H264 ?

This is on the camera app itself not in Home Assistant.

there is a way to change annke cameras from h265 to h264?? HOW? this sound be most useful to me atm

Login to your Annke NVR and go to Video/Audio settings. You should be able to change the encoding per each camera.

Screen Shot 2022-08-21 at 23.06.00

well propably the c500 has h264, the successor c800 only has h265/h265+…

top bad