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

FFmpeg recording process exited with error! (null) #708

Closed New-three closed 1 year ago

New-three commented 1 year ago

I installed camera ui on my Homebridge (Synology, Docker).

There are some error messages in the log that I think have something to do with the motion detection. Recordings are also not started via Homekit.

[12/30/2022, 12:50:02 PM] [CameraUI] ERROR Weg: FFmpeg recording process exited with error! (null) [12/30/2022, 12:50:18 PM] [CameraUI] ERROR Haustur: FFmpeg videoanalysis process exited with error! (null) - [h264 @ 0x55f223b9cbc0] error while decoding MB 13 42, bytestream -5 [12/30/2022, 12:50:18 PM] [CameraUI] ERROR Haustur: FFmpeg videoanalysis process exited with error! (null) - [h264 @ 0x55f223b9cbc0] error while decoding MB 13 42, bytestream -5 [12/30/2022, 12:50:18 PM] [CameraUI] Haustur: Restart videoanalysis session.. [12/30/2022, 12:50:18 PM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-12-30T11:50:18.734Z","event":"killed"} - Motion: resetted - Camera: Haustur [12/30/2022, 12:50:33 PM] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":65.46006774902344,"sensitivity":36,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Hof [12/30/2022, 12:50:33 PM] [CameraUI] Hof: Motion ON

Environment

{ "name": "CameraUI", "port": 7575, "atHomeSwitch": false, "logLevel": "info", "mqtt": { "active": false, "tls": false, "port": 1883 }, "http": { "active": true, "port": 7272, "localhttp": false }, "smtp": { "active": false, "port": 2727, "space_replace": "+" }, "ftp": { "active": false, "useFile": false, "port": 5050 }, "ssl": { "active": false }, "options": { "videoProcessor": "/homebridge/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg" }, "cameras": [ { "name": "Haustur", "motion": false, "doorbell": true, "switches": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://XXX/videoMain", "subSource": "-i rtsp://XXX/videoMain", "stillImageSource": "-i rtsp://XXX/videoMain", "rtspTransport": "tcp", "vcodec": "copy", "acodec": "libfdk_aac", "audio": false }, "smtp": { "email": "Haustur" }, "videoanalysis": { "active": true }, "mqtt": {} },

whhumu commented 1 year ago

Not sure if this will help. I found by removing and reinstalling the plugin - restarting the homebridge, then installing 1 camera at a time and restarting the plug in every time helped me to get rid of the issue. To solve it I had to remove the plug in totally and reinstall. I think adding multiple cameras and then saving results in coding errors. I left stream as -i XXXX, and then width, height and frame rate as 0, and bitrate empty worked for my setup

moviebrain commented 1 year ago

I’m also having this issue. Only 1 camera connected, nothing that I’m aware of has changed, no new cameras added.

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.

moviebrain commented 1 year ago

I disabled audio and the error stopped. For me it is/was 100% an audio issue. “Wontfix”. Geez

markywarky commented 3 months ago

I disabled audio and the error stopped. For me it is/was 100% an audio issue. “Wontfix”. Geez

Same for me.

New-three commented 3 months ago

How can i Disable Audio?

moviebrain commented 3 months ago

When you have your Homebridge admin page open, go to your Plugins tab, and choose the three vertical dots next to CameraUI. From there choose Plugin Config, and then choose Config from the pop up.

From there expand the Camera menus, and under the camera causing an issue, expand the “HKSV Configuration” menus. At the very bottom of that uncheck the “Enable Audio” box. IMG_6702 IMG_6700 IMG_6699 IMG_6698