FFmpeg recording process exited with error! (null) since 5.0.12

See original GitHub issue

Since 5.0.12 update I receive a lot of FFmpeg recording process exited with error! (null) for multiple cams. My last proper recordings are from this Sunday 3 pm CET everything later was not recorded because of this error for all cams:

[24.1.2022, 07:17:19] [CameraUI] camera.ui v5.0.14 is listening on port 8081 (http)
[24.1.2022, 07:17:32] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":7.012152671813965,"sensitivity":94,"dwell":60,"forceClose":3}] - Motion: detected - Camera: CAM-02
[24.1.2022, 07:17:32] [CameraUI] CAM-02: Motion ON
[24.1.2022, 07:17:33] [CameraUI] CAM-02: FFmpeg recording process exited with error! (null)
[24.1.2022, 07:17:40] [CameraUI] CAM-02: Closing recording process
[HDS ::ffff:10.0.1.87] Recording download stream 1 is still awaiting generator although stream was closed 10s ago! This is a programming mistake by the camera implementation which prevents freeing up resources.
[24.1.2022, 07:17:52] [CameraUI] CAM-02: Motion OFF - Motion handler timeout.

My config is

                {
                    "name": "CAM-02",
                    "manufacturer": "Reolink",
                    "model": "RLC-810A",
                    "serialNumber": "CAM-02",
                    "motion": true,
                    "doorbell": false,
                    "switches": true,
                    "motionTimeout": 20,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": true,
                    "forcePrebuffering": false,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtmp://XXX/bcs/channel0_ext.bcs?channel=0&stream=2&user=XXX&password=XXX -map 0 -an -dn -flags -global_header",
                        "subSource": "-i rtmp://XXX/bcs/channel0_ext.bcs?channel=0&stream=2&user=XXX&password=XXX -map 0 -an -dn -flags -global_header",
                        "stillImageSource": "-i http://XXX/cgi-bin/api.cgi?cmd=Snap&channel=1&rs=XXX&user=XXX&password=XXX",
                        "maxStreams": 10,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 30,
                        "forceMax": false,
                        "audio": false,
                        "debug": false,
                        "vcodec": "copy"
                    },
                    "videoanalysis": {
                        "active": true
                    },
                    "smtp": {
                        "email": "CAM-02"
                    },
                    "mqtt": {}
                }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
iuliusmaximiliancommented, Jan 24, 2022

I just found the error, somehow during one of the updates the config was modified and as result the wrong native ffmpeg was used instead of the homebridge-camera-ui one. I manually added again the line that solved it for 5.0.14:

"options": {"videoProcessor": "/usr/lib/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg"},
0reactions
seydxcommented, Jan 24, 2022

@seydx Unfortunately not and I am not able to downgrade to 5.0.9 or below to test.

v5.0.15-beta.1 is online, can you give it a try pls

Read more comments on GitHub >

github_iconTop Results From Across the Web

FFmpeg recording process exited with error! (null) #708 - GitHub
I installed camera ui on my Homebridge (Synology, Docker). There are some error messages in the log that I think have something to...
Read more >
Camera-Ui question : r/homebridge - Reddit
stream is working but getting “ffmpeg recording process exited with error! (null)” when there is motion detection.
Read more >
homebridge-camera-ui - Bountysource
Getting The recording process was aborted by HSV with reason "UNEXPECTED_FAILURE" on both cameras after Homebridge restart. Everything was working just fine for ......
Read more >
FFmpeg exited with code 1, Homebridge and Homekit ...
When connecting your IP camera to Homekit, you may have run into issues with ffmpeg exiting with code 1 when trying to stream....
Read more >
ffmpeg can take picture preview but errors on streaming video?
Im able to take a picture preview with the camera just fine but video seems to throw errors. [Logitech-C525] [fatal] Invalid input file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found