Stream Component: Confirmed Cameras and Configurations

Do you mean the stream in the UI player that opens up after clicking the image or when streaming to a chromecast?

Either way, I haven’t noticed any issues but have only watched a few minutes here and there while testing. I was originally testing with lowish settings 960x540, 5fps, 2000 kbps

I’ve since bumped it up to 720p, 15fps, 5000 kpbs and see flashes of green screen with some block distortion in the UI player. Will test these settings to a google home hub this weekend.

**EDIT: ha! google home hub has a max res of 1024x600 so the 720p stream didnt work.

however, vlc on android was able to stream the 720p stream with no green flashes/distortion so perhaps it’s the hsl.js player or something with the ffmpeg was causing the green issues. I’ve not done any other research yet to see if others are having this issue.

I’m back down to 960x540 but now 15fps and 4000kbps to see how it goes…

I get this error

Log Details (ERROR)
Fri Mar 22 2019 21:25:56 GMT-0400 (Eastern Daylight Time)
blob:https://dffgfgfgfgf.duckdns.org/e6f2208zzzzzzzzzxxssdsdsd:1:2380 Uncaught ReferenceError: s is not defined
1 Like

Thanks. Can you provide an example URL using the digest methodology please?

Unfortunately I don’t know how to…
I set my authentication to Digest and the Still Image started working, so I assume that is what my camera is using… but I haven’t found a way to pass the credentials with digest auth in the URL.

This is working for me in Firefox at least.
http://username:[email protected]/cgi-bin/snapshot.cgi

The still image works in HA, and I have working URL’s in Chrome. They just don’t work in the generic sensor. They do work in ffmpeg.

I think it’s because the C1 models don’t have mpeg stream

Same thing with me, i opened an issue on the polymer branch, to me it looks like frontend issue:

https://github.com/home-assistant/home-assistant-polymer/issues/2987

1 Like

Just a question, I have those cheap foscam C1 models, what I do, if a put the camera as platform generic in with direct rtsp stream from foscams directly, or stream coming from Synology…

Well it’s sloooooww , just frame a frame… ,Why is that? Why is HA not able to show me a fluent stream?? The stream in Synology surveillance is good! So why not the stream coming from surveillance to HA? Also if I open the same stream in VLC , it’s also fluent?

Exactly, vlc streams without distortion. But I have same issue as you with stream in HA.

@hunterjm

I have try to add my dahua camera but wthout sucess until now …I’m using this config in order to get this to working
camera 1:

  • platform: generic
    still_image_url: “http://192.168.2.xx/cgi-bin/snapshot.cgi?channel=1
    stream_source: “rtsp://admin: the password @192.168.2.xx:554/cam/realmonitor?channel=1&subtype=00&authbasic=the code”
    username: admin
    password: the password
    name: “Cam Dahua”

I’m generating the code on the site mentioned with my user: and my passowrd as this example user:passord

I have tested successfully the:

still_image_url: over the browser asking me the user and the password
stream_source: over the vlc without adding nothing workin directly

But over the Home Assitant I stilll get a error on the image image not available

Can you please let me know how to solve this issue ?

Thank you in advance for your reply and support

Best regards

With my lower settings I watched the stream in the HA UI player for about a minute and had no issues.

Perhaps the bit rate is too high and packets are being dropped on the network on in ha’s processing (my stream is UDP).

The funny/interesting thing is that I am able to cast the stream to my TV, i just cannot see it in my browser (chome/firefox) or in the iOS app.

1 Like

What do you see in chrome if you open dev tools (ctrl-shift-i) and then click the camera view so the player loads?

image

Here’s a thought. I cannot open RSTP streams in any of my browsers, never have been able to do that. I can however open them in vlc.

How about when viewing the network tab in chrome tools. I see a playlist.m3u8 and .ts requests as the video streams.

Just non stop what looks to be retries

@ptdalen your issue looks like this one which i can only reproduce from one of my HA instances:

https://github.com/home-assistant/home-assistant-polymer/issues/2987

I was able to get still image by adding authentication: digest for my dahua camera… But my steam isn’t working.

Unifi Protect

  • Enable RTSP by selecting a Camera / Manage / Toggle on RTSP
  • Copy the RTSP URL

Example:
rtsp://192.168.X.X:7447/AbCdeFGhiJK

  • Log into the camera (via camera IP address)and turn on Enable Anonymous Snapshot*. Checkbox at bottom of config page. Click Save Changes when done.
    https://192.168.X.X/camera/config
  • Default Camera username is: ubnt
  • Password for the camera can be found under the Protect NVR under Settings (Gear icon) / Device Password / Edit

With that information you can now configure it as a generic camera:

  - platform: generic
    name: Front Porch
    still_image_url: https://192.168.X.X/snap.jpeg
    stream_source: rtsp://192.168.X.X:7447/AbCdeFGhiJK
    verify_ssl: false

Once I figure out how to pass username and password credentials I will update to remove Anonymous Snapshots