Stream component : unable to display rtsp stream

The cameras in HA are showing “Idle” and there is no pictures.
All cameras are connected to NVR poe ports.

NVR IP: 192.168.1.220

Here is my config for one of the cameras

camera:

There is usually a way to access each camera individually on an nvr… sometimes either changing the port number or the number of “channel”

1 Like

Thank’s a lot for the link … It seems that if I enable the Hik-connect in the NVR then the encryption is by default enabled and the RTSP streaming links will be nonfunctional

I already had the POE switch before I had the NVR, and decided it wasn’t worth the hassle to move to the NVR. Sorry I’m not able to help

Hi,

Having also problems. Getting error:

2020-05-04 23:33:36 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream: No dts in packet

My config:

Camera:

Camera is a DCS-825L D-Link. rstp URL works fine in VLC…
So if I read this tread a lot of users are experiencing the same problem. Is there anyone who has this working with the same cam?
Also tried to use the ‘?latest’ solution but that didnot work…

Thanks

btw HASS is fantastic! :slight_smile:

Testing stream again with my cameras tonight and I founded that now, with onvif cameras, you can specify the transport (upd, tcp etc).
But sadly, you cannot do that for Generic cameras in which you can specified an rtsp “udp only compatible” url :frowning:
https://github.com/home-assistant/core/issues/23094

So what’s the best setting to use stream in frontend/Google assistant?

Maybe related: https://github.com/home-assistant/core/issues/43653#issuecomment-744706987

Hi All,
I spent a good amount of time trying to get my hikvision camera showing in HA. After trying lots of setups this is what worked for me.

stream:

camera:
  - platform: generic
    name: "Front Gate"
    still_image_url: "http://192.168.1.xxx/ISAPI/Streaming/channels/101/picture"
    stream_source: "rtsp://username:[email protected]:554/Streaming/channels/102"
    username: username
    password: password
    authentication: digest
    name: Front Gate Snapshot

I think the thing that got it working was using the sub channel i.e. 2…thus /channels/102

hope this helps someone.

Your Hikvision cameras may support ONVIF which takes away all the headaches of finding the URLs.

If you use generic ip camera, please remember that YAML is deprecated and the above will give you a warning. It will automatically import but in a future release, trying to set up this way won’t work (you’ll need to use the UI)

The UI will help you verify your settings.