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
624 stars 92 forks source link

Problem with Raspberry PI 5 #887

Open thicla01 opened 6 months ago

thicla01 commented 6 months ago

Describe the bug A clear and concise description of what the bug is. I try to migrate my setup to a Raspberry PI 5 with the official Homebridge Raspberry PI Image bookworm (64bit). Videoanalysis session and prebuffer session restart constantly. The cameras are not accessible via Homekit.

For your information, I also migrate my setup to another Rasperry PI 4 with the official Homebridge Raspberry PI Image bookworm (64bit) and everything is working correctly.

To Reproduce Install Homebridge on a Raspberry PI 5 with the official Raspberry PI Image bookworm (64bit) sudo apt update && sudo apt upgrade sudo reboot sudo hb-service update-node sudo reboot Install homebridge-camera.ui Configure a camera Here is my configuration for the Camera named Cleo { "name": "CameraUI", "port": 8081, "atHomeSwitch": true, "logLevel": "info", "mqtt": { "active": false, "tls": false, "port": 1883 }, "http": { "active": true, "port": 1883, "localhttp": false }, "smtp": { "active": false, "port": 2727, "space_replace": "+" }, "ftp": { "active": false, "useFile": false, "port": 5050 }, "ssl": { "active": false }, "options": { "videoProcessor": "ffmpeg" }, "cameras": [ { "name": "Cleo", "manufacturer": "Amcrest", "model": "IP4M-1041B", "serialNumber": "SERIAL_NUMBER", "privacySwitch": false, "motion": true, "doorbell": false, "motionTimeout": 15, "motionDoorbell": false, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://admin:admin@IPAdress:554/cam/realmonitor?channel=1&subtype=0", "subSource": "-i rtsp://admin:admin@IPAdress:554/cam/realmonitor?channel=1&subtype=1", "stillImageSource": "-i rtsp://admin:admin@IPAdress:554/cam/realmonitor?channel=1&subtype=1", "rtspTransport": "tcp", "analyzeDuration": 2000, "probeSize": 2048, "maxStreams": 2, "maxFPS": 15, "vcodec": "copy", "acodec": "libfdk_aac", "timeout": 10, "encoderOptions": "-profile high -preset ultrafast -tune zerolatency", "audio": true }, "smtp": { "email": "Cleo" }, "videoanalysis": { "active": true }, "mqtt": {} } ], "platform": "CameraUI" }, Restart the plugin

Expected behavior A clear and concise description of what you expected to happen. Avoid videoanalysis session and prebuffer session to restart constantly

Logs If available, attach the log where the bug is vissible The result is this for the camera named Cleo. These logs repeat themselves constantly.

[29/12/2023, 21:54:59] [CameraUI] Cleo: Restart prebuffer session.. [29/12/2023, 21:55:09] [CameraUI] Cleo: Restart prebuffer session.. [29/12/2023, 21:55:09] [CameraUI] Cleo: Restart videoanalysis session.. [29/12/2023, 21:55:19] [CameraUI] Cleo: Restart prebuffer session.. [29/12/2023, 21:55:23] [CameraUI] Cleo: Restart videoanalysis session.. [29/12/2023, 21:55:29] [CameraUI] Cleo: Restart prebuffer session.. [29/12/2023, 21:55:37] [CameraUI] Cleo: Restart videoanalysis session.. [29/12/2023, 21:55:39] [CameraUI] Cleo: Restart prebuffer session..

Screenshots If applicable, add screenshots to help explain your problem.

Environment

doraid131 commented 6 months ago

I have the same problem exactly

christopher-boyd commented 6 months ago

Same issue exactly.

My logs: [02/01/2024, 08:43:38] [CameraUI] Driveway: Restart prebuffer session.. [02/01/2024, 08:43:38] [CameraUI] camera.ui v5.0.27 is listening on port 8081 (http) [02/01/2024, 08:43:38] [CameraUI] Driveway: Restart videoanalysis session.. [02/01/2024, 08:43:48] [CameraUI] Driveway: Restart prebuffer session.. [02/01/2024, 08:43:52] [CameraUI] Driveway: Restart videoanalysis session.. [02/01/2024, 08:43:58] [CameraUI] Driveway: Restart prebuffer session.. [02/01/2024, 08:44:06] [CameraUI] Driveway: Restart videoanalysis session..

My config:

{ "name": "CameraUI", "port": 8081, "logLevel": "info", "mqtt": { "active": false, "tls": false, "port": 1883 }, "http": { "active": false, "port": 7272, "localhttp": false }, "smtp": { "active": false, "port": 2727, "space_replace": "+" }, "ftp": { "active": false, "useFile": false, "port": 5050 }, "ssl": { "active": false }, "cameras": [ { "name": "Driveway", "manufacturer": "Reolink", "model": "RLC-510A", "motion": true, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://admin:xxxxxx@10.0.0.81:554/h264Preview_01_main", "subSource": "-i rtsp://admin:xxxxxx@10.0.0.81:554/h264Preview_01_sub", "vcodec": "copy", "acodec": "libfdk_aac", "audio": false, "stillImageSource": "-i rtsp://admin:xxxxxx@10.0.0.81:554/h264Preview_01_main" }, "videoanalysis": { "active": true }, "motionTimeout": 15, "smtp": { "email": "Driveway" }, "mqtt": {} } ], "platform": "CameraUI", "atHomeSwitch": false, "options": { "videoProcessor": "ffmpeg" } }

doraid131 commented 5 months ago

Any solution ??

wolpax commented 4 months ago

same problem

thicla01 commented 4 months ago

Look at this post https://github.com/seydx/homebridge-camera-ui/issues/855#issuecomment-1806223941 I think we are not going to have a fix in this current version of camera.ui

vuelo-tech commented 1 month ago

Has this relevance ?

Note: Raspberry Pi 5 is currently unsupported. There are multiple known issues that will be addressed in a future release.

https://github.com/homebridge/ffmpeg-for-homebridge/