Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Raspberry PI 5 #887

Open
thicla01 opened this issue Dec 30, 2023 · 8 comments
Open

Problem with Raspberry PI 5 #887

thicla01 opened this issue Dec 30, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@thicla01
Copy link

thicla01 commented Dec 30, 2023

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

  • Node.js Version: v20.10.0
  • Homebridge Version: v1.7.0
  • Camera UI Version: v5.0.27
  • Operating System: Debian GNU/Linux Bookworm (12)
  • Browser: Firefox version 121.0
@thicla01 thicla01 added the bug Something isn't working label Dec 30, 2023
@doraid131
Copy link

I have the same problem exactly

@christopher-boyd
Copy link

christopher-boyd commented Jan 2, 2024

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:[email protected]:554/h264Preview_01_main",
"subSource": "-i rtsp://admin:[email protected]:554/h264Preview_01_sub",
"vcodec": "copy",
"acodec": "libfdk_aac",
"audio": false,
"stillImageSource": "-i rtsp://admin:[email protected]:554/h264Preview_01_main"
},
"videoanalysis": {
"active": true
},
"motionTimeout": 15,
"smtp": {
"email": "Driveway"
},
"mqtt": {}
}
],
"platform": "CameraUI",
"atHomeSwitch": false,
"options": {
"videoProcessor": "ffmpeg"
}
}

@doraid131
Copy link

Any solution ??

@wolpax
Copy link

wolpax commented Mar 3, 2024

same problem

@thicla01
Copy link
Author

thicla01 commented Mar 4, 2024

Look at this post #855 (comment)
I think we are not going to have a fix in this current version of camera.ui

@cardeye
Copy link

cardeye commented Jun 8, 2024

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/

@mkz212
Copy link
Contributor

mkz212 commented Jul 29, 2024

🎉 A new version of camera.ui

A new version of camera.ui is currently under active development. An initial alpha/beta release and previews are coming soon. Stay tuned for exciting updates: seydx/camera.ui#448 .

This version will no longer be developed / fixed. The new version contains many novelties and fixes (most important is for HKSV recording).

@rinoronie
Copy link

bisogna installare manualmente FFmpeg

`sudo apt update
sudo apt upgrade -y

sudo apt install -y autoconf automake build-essential libass-dev libfdk-aac-dev libfreetype6-dev
libgnutls28-dev libmp3lame-dev libopus-dev libtheora-dev libtool libvorbis-dev
libvpx-dev libsdl2-dev libx264-dev libx265-dev libnuma-dev pkg-config texinfo yasm zlib1g-dev

cd ~
wget https://ffmpeg.org/releases/ffmpeg-7.1.tar.bz2

tar -xvjf ffmpeg-7.1.tar.bz2
cd ffmpeg-7.1

./configure --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-libx265
--enable-libvpx --enable-libvorbis --enable-libass --enable-libfreetype --enable-pic --enable-shared

make -j$(nproc)

sudo make install

sudo ldconfig

ffmpeg -version

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants