Code Monkey home page Code Monkey logo

Comments (6)

elad-bar avatar elad-bar commented on August 20, 2024

Hi, can you pls attach logs (debug level) for the disappearance issue?
Delay is due to streaming configuration in Shinobi and HA,
Shinobi UI delay is much lower because it's an internal protocol which allows it to work faster, when using the stream itself it becomes with more delay (pls compare to VLC), on to of that, you need to add the delay caused by HA which proxies the stream as well,
The component by itself doesn't manipulate nor proxies the stream, it just provide the URL to the HA camera component

from ha-shinobi.

apoorv569 avatar apoorv569 commented on August 20, 2024

Hi, can you pls attach logs (debug level) for the disappearance issue? Delay is due to streaming configuration in Shinobi and HA, Shinobi UI delay is much lower because it's an internal protocol which allows it to work faster, when using the stream itself it becomes with more delay (pls compare to VLC), on to of that, you need to add the delay caused by HA which proxies the stream as well, The component by itself doesn't manipulate nor proxies the stream, it just provide the URL to the HA camera component

If I filter logs by "Shinobi" I don't see much, just that its "Unavailable" or "Idle" or something..

How can I get more verbose logs?

I did try the stream with mpv it works fine.

from ha-shinobi.

apoorv569 avatar apoorv569 commented on August 20, 2024

@elad-bar While looking in the logs today I found this error message for ha-shinobi plugin,

Error from stream worker: Error demuxing stream: [Errno 1414092869] Immediate exit requested: 'http://CAMERA_LINK/s.m3u8'

also shows this error message,

ERROR (MainThread) [custom_components.shinobi.component.api.shinobi_api] Failed to get data from [AUTH_TOKEN]/monitor/[GROUP_ID], Error: Cannot connect to host CAMERA_IP ssl:False [Try again], Line: 191

I have redacted the camera link (IP address and all) to just CAMERA_LINK and/or CAMERA_IP. Does this helps in diagnosing the error for why camera shows in Home Assistant for few seconds then goes to unavailable state again?

from ha-shinobi.

elad-bar avatar elad-bar commented on August 20, 2024

@apoorv569 , can you please let me know if it still happens with version v1.3.2?

thanks

from ha-shinobi.

apoorv569 avatar apoorv569 commented on August 20, 2024

@apoorv569 , can you please let me know if it still happens with version v1.3.2?

thanks

I tried the new version, it is definitely a lot stable now than before, but it does still occasionally becomes unavailable.

For the time being I was and still am using the Generic Camera integration and directly stream the rtsp stream from the camera as it seems to be stable.

BTW I also moved both Shinobi and HomeAssistant to their own VM instead of running them in docker.

from ha-shinobi.

elad-bar avatar elad-bar commented on August 20, 2024

not sure I understand, as I run Shinobi and HA on docker without any issues as you described, so most probably we need to understand the term disappearing you have used :)

did you mean that the status of the camera entity goes offline (disconnected / stopped) or the camera entity is not available anymore?

if the camera entity's status goes offline, it most probably realted (same goes for the lag) by the NVR software which in this case - Shinobi Video server.

if the entity is not available anymore, do you see errors in log related to the component? if not - please set the component's logging to debug, run it for a while, and once it happens post the log (as zipped file) without sensitive data.

thanks

from ha-shinobi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.