koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
4.26k stars 251 forks source link

Can't enable OpenCV for camera - worked before #342

Closed dawiinci closed 2 years ago

dawiinci commented 2 years ago

The object detection was working properly until a few days ago.

In the camera configuration I disabled the OpenCV, refreshed and I couldn't enable it again. Settings for OpenCV weren't there prior disabling it. The setting were there before obviously.

I reinstalled, but it is still missing. Anything I can do? The camera still streams Stream 1, but no motion is detected.

Running 0.1.16 on M1 Mac.

server version: 0.1.16
plugin version: @scrypted/objectdetector 0.0.49
plugin successfully loaded
server version: 0.1.16
plugin version: @scrypted/rtsp 0.0.51
[Rebroadcast Plugin]: prebuffer sessions starting in 5 seconds
[HomeKit]: Device is in accessory mode and is online. HomeKit services are being published.
[Rebroadcast Plugin]: Stream 1 prebuffer session started
[Rebroadcast Plugin]: prebuffer session starting
[Rebroadcast Plugin]: stream Stream 2 will be rebroadcast on demand.
[Rebroadcast Plugin]: Default Stream: channel0 Stream 1
[Rebroadcast Plugin]: rebroadcast mode: rtsp
[Rebroadcast Plugin]: H264 oddities were detected in prebuffered video stream, the Default Scrypted RTSP Parser will not be used. Falling back to FFmpeg. This can be overriden by setting the RTSP Parser to Scrypted.
rtsp stream url rtsp://.../videoMain
[Rebroadcast Plugin]: -hide_banner -fflags +genpts -rtsp_transport tcp -i rtsp:[REDACTED] -rtsp_transport tcp -vcodec copy -an -f rtsp rtsp://127.0.0.1:49451/bcba4092ff9cb3e5
[Rebroadcast Plugin]: Guessed Channel Layout for Input Stream #0.1 : mono
[Rebroadcast Plugin]: Input #0, rtsp, from 'rtsp://.../videoMain':
[Rebroadcast Plugin]:   Metadata:
[Rebroadcast Plugin]:     title           : videoMain
[Rebroadcast Plugin]:   Duration: N/A, start: 0.000000, bitrate:
[Rebroadcast Plugin]: N/A
[Rebroadcast Plugin]:   Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 25 tbr, 90k tbn
[Rebroadcast Plugin]:   Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
[Rebroadcast Plugin]: Detected audio codec is not mp4/mpegts compatible. pcm_mulaw
[Rebroadcast Plugin]: prebuffer session started
[Rebroadcast Plugin]: Output #0, rtsp, to 'rtsp://127.0.0.1...':
[Rebroadcast Plugin]:   Metadata:
[Rebroadcast Plugin]:     title           : videoMain
[Rebroadcast Plugin]:     encoder         : Lavf59.16.100
[Rebroadcast Plugin]: Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, q=2-31, 25 tbr, 90k tbn
[Rebroadcast Plugin]: Stream mapping:
[Rebroadcast Plugin]:   Stream #0:0 -> #0:0 (copy)
[Rebroadcast Plugin]: Press [q] to stop, [?] for help
[rtsp @ 0x13e60aea0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[Rebroadcast Plugin]: video/audio detected, discarding further input
koush commented 2 years ago

not sure, probably a Mac local environment change issue. check your service console output.

dawiinci commented 2 years ago

After reinstalling/updating it works again.

https://raw.githubusercontent.com/koush/scrypted/main/docker/install-scrypted-dependencies-mac.sh