Stream Component: Confirmed Cameras and Configurations

I do see the same delay if i use the xiaomi camera stream directly to google without ha
So i think it is a google thing that causes the delay

And the wyze cam for google is now in beta and they also report a big delay

Re to stop casting @sleeepy2… so (showing complete ignorance here), is casting a pull operating or push?

I.e. when I do the play_stream, is that a request sent to Chromecast (or whatever) tht then initiates a pull operating against a service simultaneously offered up by HA? Which stays up as long as it keeps pulling?

wyze is using their clould servers (aws) as middle man for their google streaming. So once they roll out rtsp you can just use HA for it.

@ptdalen media_player.turn_off just stops the casting, at least for me. It goes back to the slide show. I was actually hoping it would turn off my TV, but it didn’t

@Linwood Yes. lol, I have no idea.
I think when you do play_stream it instructs the chrome cast to look up and pull the stream by itself. Once it has started HA doesn’t have anything to do with it. I think HA is basically saying hey, look at the stream I found, you play it. then I think the turn turn_off command just instructs the chrome cast to stop playing the feed.

Thank you very much, it is working with your code on my both hikvision cam, H264+ and H265+ !

EDIT: little bug, When I click the first time on the camera I have a blank page so I need to close it and click again on the camera and it works.

How to get it stream on my androidtv box.
I am using airscreen on my android tv box
and also i am having samsung tv, how to stream on both my device?
Please guide.
Thanks

2 Likes

Did you also have to drop the resolution down to 720p to get this to work?

It drops to 720p automatically.

Just in case someone has an LTS camera.

This is working for me. I am not sure why I have to have user:password in the stream source. If I remove it it will not work (so it doesn’t use the listed user and password in yaml).

camera: 
  - platform: generic
    name: garagaecam
    still_image_url: http://ipaddress/ISAPI/Streaming/channels/101/picture
    stream_source: rtsp://username:password@ipaddress/HighResolutionVideo
    username: username
    password: !secret cam_password
    verify_ssl: false
    authentication: basic
1 Like

0.91 seems to have broken my Foscam cameras. I see that stream support was added for them as a beta fix, but all of them just open spinning windows when I attempted to use them. 3 different camera models, all of which I can stream from VLC

As per a previous post I found, I ended up having to install these two packages to get it to work properly:
apt install libavformat-dev
apt install libavdevice-dev

With 0.91 the live stream is immediate and works perfectly with my Hikvision cameras

2 Likes

could you paste your code please, how many cameras are you using for your hikvision as mine doesnt work and i have it set out like so:

- platform: generic
  still_image_url: http://192.168.0.8:82/ISAPI/Streaming/channels/100/picture
  stream_source: rtsp://admin:********@192.168.0.8:554/Streaming/Channels/102/
  name: testcam
  username: admin
  password: *********
  authentication: digest

but that is only one camera and it doesnt work,

On my hikvision, 102 is mjpeg. 101 is H.264.

The user name and password is used for the still image, not the stream.
I found that out the hard way.

1 Like

what kind of camera? I think it depends if you have authentication on for RTSP or have it disabled. In my case, it is on, and only allows basic authentication. I want authentication as I don’t want anyone to be able to browse on my camera if they get in my network (although I guess it isn’t a big deal now that I think about it).

I think the user name and password fields have nothing to do with the stream.
Your stream requires the username:password in it if you have authentication on. It doesn’t use the user name password.

The still image uses the user name password if authentication is on.

Understood. That seems to be how it works, but I wish it wasn’t how it works. :slight_smile:

I’ve posted some further information on Unifi Protect here about setting the Unifi Camera credentials. I have confirmed that Unifi is now working using the stream component using the same config you have previously posted.

I am not following? Camera.snapshot? Then you already have a working camera… No, I want a snapshot url from Synology, but Synology doesn’t provide that in a single url, like the rtsp stream