Stream Component: Confirmed Cameras and Configurations

I have 2 Unifi cameras streaming, fine, but not getting sound. Does anyone have sound working?

Sorry to mislead you. it is not working the way i thought it was working. Anyway, what I did was the below.

  1. place any jpg image (place holder) in www folder

  2. create a camera config and point this as image_url (and actual synology stream as stream_url)

  3. at this point you cameras will show up with the place holder image. if you click on it it will open the actual stream.

  4. then i created an automation (state change) using camera.snapshot to create new images (with the same name as the placeholder image, so that it will get overwritten)

    alias: AUTO-CAMERA-SNAPSHOTS
    id: ā€˜AUTO-CAMERA-SNAPSHOTSā€™
    trigger:
    platform: state
    entity_id: camera.entrance_cam, camera.frontroom_cam, camera.lounge_cam, camera.backyard_cam
    action:
    service: camera.snapshot
    data_template:
    entity_id: ā€˜{{trigger.from_state.entity_id}}ā€™
    filename: ā€˜/config/www/images/{{trigger.to_state.entity_id}}.jpgā€™

  5. it works but, it looks like the camera.snapshot is creating snapshots using the placeholder image (not the actual stream). so the new images created also looking exactly same as the placeholder. BUMMER

1 Like

Has anyone configured an axis camera to work with the stream component?

Hehe, thatā€™s normal, thatā€™s why there is a snapshot url, to create snapshotsā€¦ They are not coming from streamsource

Anyone got the DSC-932L d-link camera to work with the stream component?

There is a fix coming planned for 0.91.1 that will make Axis cameras work. Hold out for that.

-Jan

Iā€™ve been trying with DCS-935L using RTSP with H.264 and Iā€™ve had no luck. The address Iā€™ve tried is rtsp://username:password@ip-number:554/play1.sdp and is working fine in VLC.

Ok, thanks, please give me a heads up if you figure it out :blush:

For all the Foscam owners out there. This is working for me.

Foscam C1 and Foscam FI9800P

- platform: generic
  name: "Camera name"
  stream_source: rtsp://USERNAME:PASSWORD@IPADDRESS:554/videoMain
  still_image_url: http://IPADDRESS:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=USERNAME&pwd=PASSWORD
  username: USERNAME
  password: PASSWORD
  verify_ssl: false
1 Like

and also smooth? i also believe platform foscam itself is now also supported for stream: so not only generic
https://github.com/home-assistant/home-assistant/pull/22568 (91.0)

tried it?

I tried the foscam platform but could not get the stream to work.

The generic is smooth-ish. Has some hickups now and then but overall itā€™s okay.

Iā€™m struggling to get this to work on my SV3C camera

The URLs work fine on the browser, but HA wont see the still image or the video feedPreformatted text

Camera 1 = DS-2CD2185FWD-IS, H265+, authentification : digest
Camera 2 = DS-2CD2142FWD-I, H264+, authentification : digest

Code :

- platform: generic
  still_image_url: http://192.168.1.12:80/ISAPI/Streaming/channels/100/picture
  stream_source: rtsp://admin:[email protected]:554/Streaming/Channels/102/
  username: !secret hikvision_garage_username
  password: !secret hikvision_garage_password
  authentication: digest
  name: "Camera garage"

- platform: generic
  still_image_url: http://192.168.1.13:80/ISAPI/Streaming/channels/100/picture
  stream_source: rtsp://admin:[email protected]:554/Streaming/Channels/102/
  username: !secret hikvision_garden_username
  password: !secret hikvision_garden_password
  authentication: digest
  name: 'Camera garden'

Small update my reolink camera setup with the sub feed and as a generic camera still suffers from the black feed on first launch and proper stream on second launch out of the box in 0.91.0.

HOWEVER

If I check the preload stream option it works quickly and correctly every time, but with the obvious overhead on the HASS serverā€¦ I still think there is something wrong with the way HASS initially loads the stream and setting all my cameras this way would probably overload my HASS server. At least I can use this on my front door cam to see it nearly instantly.

Just posting for refrence, maybe will help others troubleshooting. I have a hikvision 1080p camera, the stream component just doesnt work well. It plays a couple seconds, then gets a spinning circle for a second, then continues. It does not skip forward, so the stream quickly gets further and further delayed. On VLC the stream plays fine.

So on 91.1 I get the following errors when playing the stream

non-existing PPS 0 referenced
then
decode_slice_header error
then
no frame!

Pretty standard rstp
rtsp://username:[email protected]:554/ISAPI/Streaming/channels/101

This doorbell plays at 12fps. VLC does not show framerate for this stream,

image

but my other camera which plays perfectly as a stream does show framerate

image

I have tried setting framerate in the camera config, but it did not make a difference.

thanks but mine are still not working on stream, h265+ 4mp poe cams my h264+ works fine

The buffering is due to requesting resources faster than they are available. Preload stream will help with this.

The overhead isnā€™t really that high. Have you checked resource consumption on your machine?

1 Like

Hmm, Iā€™m casting this to my TV, how do I preload the stream. Iā€™ve never been able to get any of my streams to work on my computer, which is fine for the moment.

Edit: I checked the preload stream, no difference.

This doorbell camera is wi-fi and the others on my network are POE, but even so, VLC still plays the stream well. I suspect the rstp stream is not 100% compliant, or its the audio, or something

I tried using a sub stream as well, I also took out the audio in the sub stream on the camera settings, still not working

I did notice that these errors showed in the log upon restarting

2019-04-05 14:46:43 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2019-04-05 14:46:43 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2019-04-05 14:46:43 ERROR (stream_worker) [libav.h264] decode_slice_header error
2019-04-05 14:46:43 ERROR (stream_worker) [libav.h264] no frame!
2019-04-05 14:46:44 ERROR (stream_worker) [libav.h264] error while decoding MB 32 35, bytestream -40

When I removed the camera stream settings in HA these errors did not appear, so Iā€™m confident these errors are from the doorbell camera stream