Stream Component: Confirmed Cameras and Configurations

i have the exact same config as you for my foscam c1 , when remove stream: , i have an videostream and snapshot
when i add stream: , when i then click the camera, the video just never loads
is it maye because o have an @ in my password ?

config see below ; 'changed password, but its like that with a @ in the url

  - platform: generic
    still_image_url: "http://192.168.0.42:88/cgi-bin/CGIProxy.fcgi?usr=user&pwd=p@sword&cmd=snapPicture2"
    stream_source: rtsp://user:p@[email protected]:88/videoMain
    name: "test"
    username: user
    password: p@ssword
    verify_ssl: false

and if change config to, doesnt work either

  - platform: generic
    still_image_url: "http://192.168.0.42:88/cgi-bin/CGIProxy.fcgi?usr=user&pwd=p@sword&cmd=snapPicture2"
    stream_source: rtsp://192.168.0.42:88/videoMain
    name: "test"
    username: user
    password: p@ssword
    verify_ssl: false

When I tested this morning, it did load a video. Now I can’t get it to at all. Seems those cameras are pretty flaky on the Foscam forums. Will have to troubleshoot more later.

omg found it, seems the image url is on port 88, but the rtsp port is actually on 90!!
changed the url , now got an unauthorized message, but thats probaly because i have a @ in my password, so getting closer
more testing for tomorrow

fixed: removed username / password field, so everything now is in the rspt url, with " " at begin and end
working now and fluent :slight_smile:

EDIT: hmm, it works, but not fluent all, just first 2 seconds, then it hangs :slight_smile:

Which hardware are you on? Others have found success reducing the bitrate/quality/size of the stream.

1 Like

For Foscam i did use the following source: https://www.foscam.com/faqs/view.html?id=81

rtsp://username:pwd@IP:port/videoMain

Then i tried with and without the username in the generic camera component but couldn’t get any stream working. I can open it with VLC Just fine.

Would like to run it with the stream component.

See above. Its being discussed immediately above your reply.

I recall actually changing ports a long time ago to make them all match, so mine did work on port 88. My test was only for a few seconds so you may be right that it just dies after a little bit.

Interestingly enough (or not?), now my stream doesn’t work and I can’t even log into the camera’s web interface, even after a reboot. May just factory reset it later.

I am running HassOS on esxi server, not an hardware issue :wink:

I think those foscams are not capable to give a fluent stream, maybe it has something to do with ffmpeg

I thought I saw this earlier in the thread, but searched and didn’t find it.
I have a DAHUA camera and am getting the error:

Error demuxing stream: No dts in packet"

this is using the following:

stream: rtsp://user:password@IP:port/cam/realmonitor?channel=1&subtype=0&unicast=true@proto=Onvif

This is what I use for an ffmpeg stream, and that works - also works in VLC.
I have also tried this (from the suggestions above):

stream:http://user:password@IP/cam/realmonitor?channel=1&subtype=0@authbasic=XXXX

This is not giving any errors, but doesn’t seem to work. I thought this was working yesterday for one minute, but then I tried to open it again, and got the same issue as others - controls at the bottom, and a loading circle.

Any suggestions?

1 Like

oops didn’t find your post; i used your config for the generic camera, thats working! thanks. but only for the generic camera part. Stream won’t send it to my samsung tv, to bad :frowning:
error: [homeassistant.components.media_player.samsungtv] Unsupported media type
i think a google chromecast is still necessary

Indeed…

Anyway, some one else with foscams here and fluent stream? :wink:

My Foscam FI9853EP is working well since 0.90.1 config as above but only the platform: generic and the two image/stream urls

FWIW my other two Foscams (non C1) work great.

Anyone had any success with hikvision NVR?

- platform: generic
  still_image_url: http://192.168.1.100:65002/ISAPI/Streaming/channels/1/picture
  stream_source: "rtsp://user:[email protected]:8554/ISAPI/Streaming/channels/201/"
  name: Driveway One
  username: user
  password: !secret camera_nvr_password
  authentication: digest

Actually its a laview NVR, but usually works the same as hikvision

That works. Thanks for the help!!

This config is “working” with the Hikvision NVR (but as above I had to drop the cameras to 720p to even get them to load on the RPi.

  - platform: generic
    still_image_url: http://192.168.0.xxx:80/ISAPI/Streaming/channels/100/picture
    stream_source: rtsp://uid:[email protected]:554/Streaming/Channels/102/
    name: 'My First Camera'
    username: uid
    password: pass
    authentication: digest
1 Like

Can you provide sample for ffmpeg - how to configure please

I wouldn’t call this “working” but I have Yi 720p cameras with rtsp and it works but then starts to crash after about 10s. I also get the following…

2019-03-22 20:04:10 ERROR (MainThread) [frontend.js.latest.201903210] https://domain.com/Lovelace/1:0:0 ResizeObserver loop limit exceeded
2019-03-22 20:04:25 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream: No dts in packet

Here is my config

  - platform: generic
    name: !secret yi_stream_name1
    still_image_url: !secret yi_still_1
    stream_source: !secret yi_stream_name1_stream_url
    framerate: 20
    verify_ssl: false

doesnt work with hikvision h265+ streams, working fine on my older h264+ camera