how did you install HA?
Thanks for all your work on this. My Dahua NVR has been setup like above and I get no errors. The picture is fine but the video stream is blank.
2019-03-21 10:22:42 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsp://admin:[email protected]:554/cam/realmonitor?channel=2&subtype=00&authbasic={dfsdW4=:U2dsfdsh}
- Version
Record Channel:4
Alarm In:4
Alarm Out:3
SN:AM003414051125
System Version:3.200.0005.1.R, Build Date: 2014-04-27
@bmorgan are you just viewing it as a picture entity card in lovelace? If so the static image is used on the main view and updates every 10s. You will need to click on it to view the actual live stream. Make sure your card has the following in it for the click to work.
tap_action:
action: more-info
Rob, looks like your authbasic
isnāt configured correctly. Both values should be encoded together including the colon as the same string value.
Yeah, that makes sense. It was so precise I soon figured it wasnāt a coincidence. Apparently even 8 stills per 10 seconds is too big a strain for one lovelace view as they frequently draw a blank. It was that way before, too.
Fixed it but still no video with picture. (I added user2 with password passwo for testing)
- platform: generic
name: backyard_video2
still_image_url: "http://192.168.2.38/cgi-bin/snapshot.cgi?channel=2"
stream_source: "rtsp://user2:[email protected]:554/cam/realmonitor?channel=2&subtype=00&authbasic={dXNlcjI6cGFzc3dv}"
username: user2
password: passwo
although I get error on the image, it appears fine and up to date on the front end.
2019-03-21 12:32:19 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting image from: backyard_video2
2019-03-21 12:32:40 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting image from: backyard_video2
2019-03-21 12:33:20 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting image from: backyard_video2
2019-03-21 12:33:40 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting image from: backyard_video2
2019-03-21 12:33:59 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting image from: backyard_video2
2019-03-21 12:34:07 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsp://user2:[email protected]:554/cam/realmonitor?channel=2&subtype=00&authbasic={dXNlcjI6cGFzc3dv}
Rob - if you are not getting the picture put this into a browser and see if you get the image.
Since you are using an NVR Iām not sure how many channels you have, but make sure you can get what you need in a browser first to confirm it is working.
Thanks. I donāt think the issue is with the setup or login because if I remove stream:
. the camera works perfect, good image and 60 fps on the video. (not streamable and no media player) . I also use the same streaming url for ffmpeg and vlc which works.
- platform: generic
name: backyard_video2
still_image_url: "http://192.168.2.38/cgi-bin/snapshot.cgi?channel=2"
stream_source: "rtsp://user2:[email protected]:554/cam/realmonitor?channel=2&subtype=00&authbasic={dXNlcjI6cGFzc3dv}"
username: user2
password: passwo
Try removing the curly braces in stream_source
. If still no luck, try again when 0.90.1 is released. There might be some more detailed logs at that point.
Ok, for Synology I can use the rtsp stream path, but what about the image url ?
You are correct. I removed the {} and I got more logs.
2019-03-21 15:21:09 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsp://user2:[email protected]:554/cam/realmonitor?channel=2&subtype=00&authbasic=dXNlcjI6cGFzc3dv
2019-03-21 15:21:09 ERROR (stream_worker) [libav.h264] error while decoding MB 4 32, bytestream -19
2019-03-21 15:21:10 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream:
I upgraded to 0.90.1 and I get a video now. Thanks
dafang still_image works fine if you use the template from their github. I had to add the username, password, authentication type, and verify_ssl=false
- platform: generic
name: Camera
still_image_url: https://192.168.x.y/cgi-bin/currentpic.cgi
stream_source: rtsp://192.168.x.y:8554/unicast
verify_ssl: false
username: root
password: ********
authentication: basic
Are wyze or blink cameras compatible with this?
Want to know too
You may need to experiment with your cams, people may not have yours. If you find working config then post them here for others
Would love to see a HomeKit integrationā¦
How can we use ffmpeg camera? E.g. for legacy cameras which donāt have HLS stream?
same problem hereā¦ Why is still image a required field
ESCAM G02
- platform: generic
still_image_url: "http://CAMERA_IP/snap.jpg?usr=USERNAME&pwd=PASSWORD"
stream_source: "rtsp://USERNAME:PASSWORD@CAMERA_IP:554/01"
name: "ESCAM G02 Stream #1"