I’m having a strange problem with my Hikvision NVR (DS-7608HI-ST). At low resolutions (CIF or QCIF) the streams work fine, if somewhat small. However when I change to 4CIF to get the full resolution of the cameras, I still get a working stream, but it is green tinged and almost looks interlaced.
I just set up the stream component with the Blue Iris url and while I do get the stream working in HA, they frame rates are super low. Full size image looks to update every 2 seconds or so. Its confirmed the BI webui and through the main app on windows the video is not an issue. Any suggestions on maybe some settings I need to change?
Thanks for the clarification. I’ll keep this in mind as I would like to get this working.
I’ll wait for an update though as I have other issues with the stream component as outlined in this thread:
Ok…I think I went through this whole thread without seeing any issues that matched what I am experiencing.
So this is what I’ve got:
HA v.0.93.2 running on Ubuntu in docker
4 Xiaomi/Wyze v2 cameras running the Dafang hack
using the stream: component in my configuration.yaml file
using the camera_view: live option in lovelace.
use latest java option in my configuration. yaml
set swapfile option in run.sh to true.
resolution is at the lowest, bitrate is at 100, 10 fps
Here’s the issue:
Everything seems to work fine for about a few minutes. Cameras stream smoothly to the front end, then after a few minutes all camera views stops streaming and just gives me a still motion shot.
HOWEVER, here’s the strange part, if I set my lovelaceUI to edit mode, then everything works flawlessly. The stream won’t stop after a few minutes. Put it back to display mode, then everything stops.
Anyone else have this issue? If so, how did you fix it?
Hi @MrMagic thanks for your help. I’ve stumbled across your post when trying to migrate my camera componen from ffmpeg to stream. I’m also using Hikvision NVR, and your config works fine. However, I need to double check the port for still images. I don’t know, maybe the technician change the default port to access the web portal, mine is on 81. So, my working config for Hikvision NVR is as follow :
- platform: generic
still_image_url: http://192.168.100.64:81/ISAPI/Streaming/channels/101/picture
stream_source: rtsp://user:[email protected]:554/Streaming/Channels/101/
name: Kamera Ruang Tengah Lt 1
username: user
password: pass
authentication: digest
It works fine, much better than ffmpeg, in term of speed, framerate, and image clarity. However I have two questions, maybe folks here can help me :
I have mic attached to one of my camera (meaning it has audio input). I can hear the sound using Hikvision android app (IVMS), and from VLC network stream. However, I can’t hear anything using stream from HA, eventhough I have unmuted and maxed the volume from the live stream window. Is there anything I can do to get the sound passing through?
For still image, I see that it get update every 10 seconds. Is there any way to make it faster, like maybe for every 4 seconds?
My 4MP PoE IP Camera Config: Compatible with Hikvision Performance Series DS-2CD2145FWD-I, great camera by the way. Six on the exterior of my house. Hassio (92.2) direct to camera. User/Pswd are handled differently between still image and stream. This was the only way I could get both to work in same card. Hope this helps save someone time and frustration.
stream:
# works 5/29/19
camera:
- platform: generic
name: Garage
still_image_url: "http://192.168.1.64:80/ISAPI/Streaming/channels/101/picture"
stream_source: !secret camera_url_rtsp
# stream_source: "rtsp://user:[email protected]:554" # put url without quotes in secrets
username: !secret camera_user
password: !secret camera_pswd
authentication: digest
I can cast my camera to Sony Android TV when the camera component is configured using ffmpeg.
I have switched to stream but when I call service camera.play_stream I just get a horizontal progress bar flash up and then the blue cast icon on the tv.
I have tried using the Hikvision settings to connect directly to the camera on it’s own IP and rtsp feed. I have also tried using the settings and IP address of Blue Iris VM.
Both work fine in HA frontend, lovelace cards with liveview, still images load fine using the still_image_url in Chrome and IE. The stream_source url opens fine in VLC with either Hikvision or BI configured.
I have exposed the camera to Google and now when I say “Ok Google show camera on living room tv” Google Home streams to the TV a black screen with white text that says “Smart Home Camera”
Has anyone else experienced problems casting to Sony Android TV using the new stream: component and Generic camera?
I don’t need username or password when playing the stream in VLC as I have set option in Blue Iris to require authentication from non LAN only. I have tried the YAML with and without username and password. I have also tried authentication basic and digest and verify_ssl as false and removed altogether. I have now set framerate to 1 just for testing.
In Blue Iris there are settings for content encoder profiles. I have tried limiting bitrate and resolution here but not had any luck yet.
Does anyone with a working camera stream from blue iris to Chromecast have their encoder settings that they wouldn’t mind posting please?