Stream Component: Confirmed Cameras and Configurations

H265 is not supported currently.

Foscam FI9901EP not working with 0.90.0 and 0.90.1

Both generic and foscam show a still image but no stream.
RTSP url has been verified, with VLC

Downgrading to 0.90.2 works for the generic platform, foscam obviously not because streams have been added in 0.91

I have the following error messages

blob:http://192.168.2.25:8123/7dd28df0-caf4-48b0-b5e6-9b1e7c353c00:1:6333 Uncaught ReferenceError: s is not defined
blob:http://192.168.2.25:8123/7dd28df0-caf4-48b0-b5e6-9b1e7c353c00:1:2380 Uncaught ReferenceError: s is not defined
Missing reference picture, default is 65592
Missing reference picture, default is 65590

edit: issue submitted Foscam FI9901EP stream not working 0.91.0 and 0.91.1 Ā· Issue #22779 Ā· home-assistant/core Ā· GitHub

Anyone have a Amcrest IP4m-1024EW? I have that model and have tried using the setting mentioned in the first post, however itā€™s not working. Iā€™ve set the following in configuration.yaml and the URLā€™s Iā€™ve used (same as first post except for IP change and user/password changed). Stream tested and working in VLC and picture link works in a browser.

logger:
  default: warn
  logs:
    homeassistant.components.camera: debug

But the logs are not showing any error messages. Any thoughts?

I just used a random image, as I dont view the preview so its no issue for me.

But in saying that, I cant get the Synology stream to work, the share URL for me doesnt have the option to set it indefinately

Anyone know how to get streams to play on Chromecast or Home Hub in 0.91.1 via voice, like in the release notes?

My camera name in the config is ā€œUpstairs Cameraā€ and my Chromecast is ā€œUpstairs TVā€. I say "Show me ā€œUpstairs Camera on Upstairs TVā€ and I just get something along the lines of ā€œSure, here are some results on Upstairs TV, which do you want to play?ā€ It just shows some random Youtube security camera footage.

I just did a sync devices in the cloud component, but cant get it to work. Any thoughts?

EDIT: Never mind, just had to add them to my cloud configuration. The Nabu Casa page is out of date and camera doesnt show as a valid entity type.

I have done some testing today and integrated one of my Dahua cameras in two ways below but I do have one question:

  - platform: generic
    name: Entry RTSP Entry
    still_image_url: "http://10.0.1.16/cgi-bin/snapshot.cgi?channel=1"
    stream_source: "rtsp://username:[email protected]:554/cam/realmonitor?channel=1&subtype=00&authbasic={base64_xxxxxxxxxxxxxxxxxx}"
    username: admin
    password: !secret dahuapass
    verify_ssl: false
    authentication: digest

  - platform: generic
    name: Entry RTSP Syno
    still_image_url: "http://10.0.1.xx/cgi-bin/snapshot.cgi?channel=1"
    stream_source: "rtsp://syno:[email protected]:554/Sms=5.unicast"
    username: admin
    password: !secret dahuapass
    verify_ssl: false
    authentication: digest

Question is, how do I return the Chromecast to ā€˜Ambient Modeā€™? In the dev tools, I can enter the info below to start the camera streaming and it starts in about 3~4 seconds which is not too bad and I can stop the stream using media_player.media_stop but it returns the screen to an image of the casting icon. If I push stop on the Samsung TV remote, the screen will drop back to ā€˜Ambient Modeā€™

image

Try media_player.turn_off

Hi. Is there a way to exclude some cameras, so they are not use stream component?

Thank You

If itā€™s a generic camera, just donā€™t add stream_source. If itā€™s a different platform that supports stream by default, remove stream: from your config.

Feel a bit stupid asking this and I truly appreciate all the work and also listened to the poscast; but what is the exact benefit of the stream_source versus the ā€˜oldā€™ camera integration in the case you do not want to do any post image processing (eg Tensorflow stuff)?

My 7 cameraā€™s are now integrated (ā€œold wayā€) via either Mjpeg (3x Hikvision via BlueIris) or Foscam and when I open the camā€™s in the UI the streaming is actually smoother then via new stream_source.

p.s. using hikvision setup as posted here comparing to mjpeg via blueiris running HASSio on a IntelNUC

What Iā€™m trying to do is to have some cameras in lovelace interface setup to stream from motioneye stream http://ip/port (that is seems to work the best for me, less lag) and the the same cameras expossed to stream with rtsp stream to be able to stream it to chromecast from rtsp stream.
Hope it make sense :wink:

That did it! Thank you.

You canā€™t. MotionEye is MJPEG

Oh ok. Thank you.

Picture in picture on desktop, send to chromecast, full screen, more than 2 FPS.

If it buffers too much for you, try ā€œPreload streamā€

Streaming works fine here, however the lookback recording doesnā€™t work for me.
I have enabled the Preload Stream checkbox.
Configured my RTSP Dafang cam:

camera:
  - platform: generic
    name: Voordeur
    still_image_url: https://192.168.20.7/cgi-bin/currentpic.cgi
    stream_source: rtsp://ricardo:[email protected]:554/unicast
    verify_ssl: false
    username: root
    password: password
    authentication: basic

When I run this command in dev-service ā€œcamera.recordā€:

{
ā€œentity_idā€: ā€œcamera.voordeurā€,
ā€œfilenameā€: ā€œ/config/www/voordeur_{{ now().strftime(ā€™ %Y%m%d-%H%M%Sā€™) }}.mp4ā€,
ā€œdurationā€: 10,
ā€œlookbackā€: 30
}

Via PIP I see the time on the camera when I submit 19:45:02
The first frame of the recording shows: 19:45:03
The duration of the video is 15 seconds.

For some reason the lookback isnā€™t working for me. Anyone having succes with the lookback recording parameter?

So how is your final automation.yaml look like. Could you share the configuration?

Sure, here is my test script so far. Works a treat. Iā€™ll be changing one of my Dahua cameras to a Hikvision that natively supports line crossing detection inside HA and using that to run the script when someone approaches the front door. Iā€™ll need to use two scripts; one that turns the TV on and off (this one) and another that leaves the TV on (if it was already being used). The wait_template: is necessary as it takes my Samsung TV 45~90 seconds to report its ā€˜onā€™ state to HA.

test_stream:
  alias: 'Test stream to Family Room TV'
  sequence:
  - service: camera.play_stream
    data:
      entity_id: camera.entry_rtsp_entry
      media_player: media_player.family_room_tv_cc
  - delay:
      seconds: 20
  - service: media_player.turn_off
    data:
      entity_id: media_player.family_room_tv_cc
  # Wait until the Family Room TV reports as on
  - wait_template: "{{ is_state('media_player.family_room_tv', 'on') }}"
  - service: media_player.turn_off
    data:
      entity_id: media_player.family_room_tv
1 Like

How do you get a live stream in your UI when using a Generic setup?

Thatā€™s exactly what Iā€™m trying to find out since out of 0.90ā€¦ :frowning: