iobroker-community-adapters / ioBroker.onvif

ioBroker Adapter for onvif cameras
MIT License
1 stars 1 forks source link

feature request: add possibility even if camera provide snapshot url to make one from the stream #41

Open AI-rrr opened 1 year ago

AI-rrr commented 1 year ago

I bought IMOU Bullet 2E 4MP camera, but it provides screenshots at low resolution. I changed fast and durty the code of your adapter to always make screenshot from the video, not using one from the camera. Would be nice if you can add in the setup of the adapter possibility not to use screenshot from the camera if it is there ( or change the logic, if one selects to generate screenshot from video, then ignore the one provided by camera). Thank you!

AI-rrr commented 1 year ago

An ffmpeg error occurred: Output stream closed occurs in the logs, but screenshot is made fine. adapter: v1.0.5 admin: v6.8.0 js-controller: 7.0.3 node: 18.16.1 Ubuntu 18 LTS what level of logs you need from the adapter?

AI-rrr commented 1 year ago

as soon as you request screenshot from adapter, generating one from stream video, this error appears in the log: An ffmpeg error occurred: Output stream closed. I guess it is from onvif library, that you are using. I also noticed that after several hours one need to restart onvif adapter, otherwise it stops to react somehow and the values are not updated anymore (that camera detected any movement). as soon as one restarts adapter, all start to work again.

TA2k commented 1 year ago

do you have logs.. normally the adapter relogin every 30min to the camera

AI-rrr commented 1 year ago

onvif.0 2023-09-01 18:56:36.400 error An ffmpeg error occurred: Output stream closed onvif.0 2023-09-01 18:55:12.839 info Starting snapshot server onvif.0 2023-09-01 18:55:12.838 info Finished onvif discovery onvif.0 2023-09-01 18:55:07.833 info Start onvif discovery onvif.0 2023-09-01 18:55:05.527 warn No presets found for 192.168.1.145:80 Error: ONVIF SOAP Fault: This optional method is not implemented onvif.0 2023-09-01 18:55:03.240 info Device successful initialized: 192.168.1.145:80 onvif.0 2023-09-01 18:55:01.180 info Found Adapter Device: onvif.0.192_168_1_145_80 LCIPC-F42F 192.168.1.145:80 onvif.0 2023-09-01 18:55:01.166 info starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.onvif, node: v18.17.0, js-controller: 4.0.24

TA2k commented 1 year ago

Maybe you can enable debug log and check if every 30min a reconnect happens

AI-rrr commented 1 year ago

will collect some logs and will send later