seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
638 stars 92 forks source link

eufy Security Solo OutdoorCam C22 - RTSP - Videoanalysis timed out... killing ffmpeg session #618

Closed kasik96 closed 1 year ago

kasik96 commented 2 years ago

Describe the bug Most of the time, everything even HSV works correctly. But sometimes, mostly my Front camera goes unreachable even though tho RTSP stream works correctly. I got "Videoanalysis timed out... killing FFmpeg session" and "FFmpeg prebuffer process exited with error! (null) - [rtsp @ 0x560450ea5780] method SETUP failed: 461 Unsupported transport - ". All my Cameras are eufy Security Solo OutdoorCam C22.

7/22/2022, 1:45:55 PM] [CameraUI] WARNING Camera - Front: The recording process was aborted by HSV with reason "CANCELLED" [7/22/2022, 1:45:55 PM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-07-22T11:45:55.568Z","event":"forceClose (3m)"} - Motion: resetted - Camera: Camera - Right Side [7/22/2022, 1:45:56 PM] [CameraUI] Camera - Left Side: Motion OFF - Motion handler timeout. [7/22/2022, 1:45:57 PM] [CameraUI] Camera - Left Side: Closing recording process [7/22/2022, 1:45:57 PM] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":34.78559112548828,"sensitivity":66,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Camera - Right Side [7/22/2022, 1:45:57 PM] [CameraUI] Camera - Right Side: Motion ON [7/22/2022, 1:46:02 PM] [CameraUI] ERROR Camera - Front: Videoanalysis timed out... killing ffmpeg session [7/22/2022, 1:46:02 PM] [CameraUI] ERROR Camera - Front: FFmpeg videoanalysis process exited with error! (SIGKILL) - [h264 @ 0x5624c73d0940] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5624c73d0940] decode_slice_header error [h264 @ 0x5624c73d0940] no frame! [7/22/2022, 1:46:02 PM] [CameraUI] ERROR Camera - Front: FFmpeg videoanalysis process exited with error! (SIGKILL) - [h264 @ 0x5624c73d0940] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5624c73d0940] decode_slice_header error [h264 @ 0x5624c73d0940] no frame! [7/22/2022, 1:46:02 PM] [CameraUI] Camera - Front: Restart videoanalysis session.. [7/22/2022, 1:46:02 PM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-07-22T11:46:02.961Z","event":"killed"} - Motion: resetted - Camera: Camera - Front [7/22/2022, 1:46:12 PM] [CameraUI] Camera - Right Side: Motion OFF - Motion handler timeout. [7/22/2022, 1:46:13 PM] [CameraUI] Camera - Right Side: Closing recording process [7/22/2022, 1:46:18 PM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-07-22T11:46:18.240Z","event":"dwellTime (60s)"} - Motion: resetted - Camera: Doorbell - Garage [7/22/2022, 1:46:20 PM] [deCONZ] Phoscon-GW Button: Programmable Switch Event: Single Press [7/22/2022, 1:46:28 PM] [deCONZ] 127.0.0.1: request 1: GET /config [7/22/2022, 1:46:28 PM] [deCONZ] warning: 127.0.0.1: request 1: connect ECONNREFUSED 127.0.0.1:4530 [7/22/2022, 1:46:28 PM] [deCONZ] warning: 127.0.0.1:4530: connect ECONNREFUSED 127.0.0.1:4530 - retrying in 60s [7/22/2022, 1:46:31 PM] [CameraUI] ERROR Camera - Front: Videoanalysis timed out... killing ffmpeg session [7/22/2022, 1:46:31 PM] [CameraUI] Camera - Front: Restart videoanalysis session.. [7/22/2022, 1:46:38 PM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-07-22T11:46:38.584Z","event":"dwellTime (60s)"} - Motion: resetted - Camera: Camera - Porch [7/22/2022, 1:46:44 PM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-07-22T11:46:44.226Z","event":"dwellTime (60s)"} - Motion: resetted - Camera: Camera - Left Side [7/22/2022, 1:46:47 PM] [CameraUI] ERROR Camera - Front: Prebuffer timed out... killing ffmpeg session [7/22/2022, 1:46:47 PM] [CameraUI] ERROR Camera - Front: FFmpeg videoanalysis process exited with error! (null) - Output file #0 does not contain any stream [7/22/2022, 1:46:47 PM] [CameraUI] ERROR Camera - Front: FFmpeg videoanalysis process exited with error! (null) - Output file #0 does not contain any stream [7/22/2022, 1:46:47 PM] [CameraUI] Camera - Front: Restart videoanalysis session.. [7/22/2022, 1:46:47 PM] [CameraUI] ERROR Camera - Front: FFmpeg prebuffer process exited with error! (SIGKILL) - [rtsp @ 0x55d2b6ffb780] method SETUP failed: 461 Unsupported transport -

Screenshot 2022-07-22 114206

Config

{ "logLevel": "info", "port": 8081, "atHomeSwitch": false, "options": { "videoProcessor": "/homebridge/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg" }, "ssl": { "active": false }, "http": { "active": false, "port": 7272, "localhttp": false }, "smtp": { "active": false, "port": 2727, "space_replace": "+" }, "ftp": { "active": false, "useFile": false, "port": 5050 }, "mqtt": { "active": false, "tls": false, "port": 1883 }, "cameras": [ { "name": "Camera - Front", "manufacturer": "Eufy Security", "model": "Outdoor Cam", "serialNumber": "19876136546", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.88.49/live0", "subSource": "-i rtsp://192.168.88.49/live0", "stillImageSource": "-i rtsp://192.168.88.49/live0", "vcodec": "copy", "acodec": "libfdk_aac", "stimeout": 10, "audio": true }, "videoanalysis": { "active": true }, "mqtt": {}, "smtp": { "email": "Camera - Front" } }, { "name": "Camera - Right Side", "manufacturer": "Eufy Security", "model": "Outdoor Cam", "serialNumber": "4481021323", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.88.48/live0", "subSource": "-i rtsp://192.168.88.48/live0", "stillImageSource": "-i rtsp://192.168.88.48/live0", "vcodec": "copy", "acodec": "libfdk_aac", "stimeout": 10, "audio": true }, "videoanalysis": { "active": true }, "mqtt": {}, "smtp": { "email": "Camera - Right Side" } }, { "name": "Camera - Left Side", "manufacturer": "Eufy Security", "model": "Outdoor Cam", "serialNumber": "89712320", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.88.47/live0", "subSource": "-i rtsp://192.168.88.47/live0", "stillImageSource": "-i rtsp://192.168.88.47/live0", "vcodec": "copy", "acodec": "libfdk_aac", "stimeout": 10, "audio": true }, "videoanalysis": { "active": true }, "mqtt": {}, "smtp": { "email": "Camera - Left Side" } }, { "name": "Camera - Porch", "manufacturer": "Eufy Security", "model": "Outdoor Cam", "serialNumber": "89741324312", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.88.51/live0", "subSource": "-i rtsp://192.168.88.51/live0", "stillImageSource": "-i rtsp://192.168.88.51/live0", "vcodec": "copy", "acodec": "libfdk_aac", "stimeout": 10, "audio": true }, "videoanalysis": { "active": true }, "mqtt": {}, "smtp": { "email": "Camera - Porch" } }, { "name": "Camera - Backside", "manufacturer": "Eufy Security", "model": "Outdoor Cam", "serialNumber": "5189721324", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.88.50/live0", "subSource": "-i rtsp://192.168.88.50/live0", "stillImageSource": "-i rtsp://192.168.88.50/live0", "vcodec": "copy", "acodec": "libfdk_aac", "stimeout": 10, "audio": true }, "videoanalysis": { "active": true }, "mqtt": {}, "smtp": { "email": "Camera - Backside" } }, { "name": "Doorbell - Garage", "manufacturer": "Action", "model": "Action Smart Doorbell", "serialNumber": "897421345", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": false, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://admin:admin@192.168.88.53:8554/Streaming/Channels/101", "subSource": "-i rtsp://admin:admin@192.168.88.53:8554/Streaming/Channels/101", "stillImageSource": "-i rtsp://admin:admin@192.168.88.53:8554/Streaming/Channels/101", "vcodec": "copy", "acodec": "libfdk_aac", "stimeout": 10, "audio": true, "readRate": true, "maxWidth": 1920, "maxHeight": 1080, "maxFPS": 30, "maxBitrate": 30 }, "videoanalysis": { "active": true }, "mqtt": {}, "smtp": { "email": "Doorbell - Garage" } } ] }

Environment

harrisbooks commented 2 years ago

I'm getting this on all of my cameras now. Everything worked fine up until about a month or so ago.

genevera commented 2 years ago

My logs are riddled with these errors

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

genevera commented 1 year ago

My logs are still riddled with these errors

neuhausf commented 1 year ago

@kasik96 Have you tried using a RTSP-proxy? I'm getting a C24 next week, so I can share my results.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.