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

FFmpeg videoanalysis process exited with error! (null) - [tcp @ 0x5590256e30] Port missing in uri #813

Open semaf opened 1 year ago

semaf commented 1 year ago

Hey,

Have read some issues with Reolink RLC-820A and RLC-410W cameras and no messages if they were succesfull to setup the cameras. I have followed the syntax but nothing want to work.

Homebridge is installed on a Raspberry Pi 4, 64-bit with latest raspian.

{
            "name": "CameraUI",
            "port": 8081,
            "atHomeSwitch": false,
            "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
            },
            "options": {
                "videoProcessor": "/var/lib/homebridge/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg"
            },
            "cameras": [
                {
                    "name": "Tür",
                    "motion": true,
                    "motionTimeout": 15,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": true,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://user:pass@18.1.1.11:554/h264Preview_01_main",
                        "subSource": "-i rtsp://user:pass@18.1.1.11:554/h264Preview_01_sub",
                        "stillImageSource": "-i rtsp://user:pass@18.1.1.11:554",
                        "vcodec": "copy",
                        "acodec": "libfdk_aac",
                        "audio": false
                    },
                    "smtp": {
                        "email": "Büro"
                    },
                    "videoanalysis": {
                        "active": true
                    },
                    "mqtt": {}
                }
            ],
            "_bridge": {
                "username": "0E:06:87:31:5C:EE",
                "port": 57796
            },
            "platform": "CameraUI"
        }
[13/08/2023, 11:02:38] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 1101) is running on port 51583.
[13/08/2023, 11:02:39] [CameraUI] Launched child bridge with PID 23426
[13/08/2023, 11:02:39] Registering platform 'homebridge-camera-ui.CameraUI'
[13/08/2023, 11:02:39] [CameraUI] Loaded homebridge-camera-ui v5.0.27 child bridge successfully
[13/08/2023, 11:02:39] Loaded 0 cached accessories from cachedAccessories.0E645D43AD0D.
[13/08/2023, 11:02:39] [CameraUI] Config changed through interface, saving...
[13/08/2023, 11:02:39] Homebridge v1.6.1 (HAP v0.11.1) (CameraUI) is running on port 59203.
[13/08/2023, 11:02:39] [CameraUI] Tür: Configuring unbridged accessory...
[13/08/2023, 11:02:39] [CameraUI] Tür: Setting up accessory...
[13/08/2023, 11:02:40] [CameraUI] Accessories refreshed and config.json saved!
[13/08/2023, 11:02:40] Tür B880 is running on port 46649.
[13/08/2023, 11:02:40] Please add [Tür B880] manually in Home app. Setup Code: 342-18-007
[13/08/2023, 11:02:47] [CameraUI] Tür: Setting up camera, please be patient...
[13/08/2023, 11:02:47] [CameraUI] Tür: An error occured during pinging camera, skipping..
[13/08/2023, 11:02:47] [CameraUI]  ERROR  TypeError [ERR_INVALID_URL]: Invalid URL
[13/08/2023, 11:02:47] [CameraUI]  ERROR  Tür: FFmpeg prebuffer process exited with error! (null) - [tcp @ 0x5598467eb0] Port missing in uri - rtsp://user:pass@18.1.1.11:554/h264Preview_01_main: Invalid argument - 
[13/08/2023, 11:02:47] [CameraUI] Tür: Restart prebuffer session..
[13/08/2023, 11:02:47] [CameraUI] Tür: An error occured during pinging camera, skipping..
[13/08/2023, 11:02:47] [CameraUI]  ERROR  TypeError [ERR_INVALID_URL]: Invalid URL
[13/08/2023, 11:02:47] [CameraUI] camera.ui v5.0.27 is listening on port 8081 (http)
[13/08/2023, 11:02:47] [CameraUI]  ERROR  Tür: FFmpeg videoanalysis process exited with error! (null) - [tcp @ 0x55b3daae30] Port missing in uri rtsp://user:pass@18.1.1.11:554/h264Preview_01_sub: Invalid argument 
[13/08/2023, 11:02:47] [CameraUI]  ERROR  Tür: FFmpeg videoanalysis process exited with error! (null) - [tcp @ 0x55b3daae30] Port missing in uri rtsp://user:pass@18.1.1.11:554/h264Preview_01_sub: Invalid argument 
[13/08/2023, 11:02:47] [CameraUI] Tür: Restart videoanalysis session..
[13/08/2023, 11:02:57] [CameraUI] Tür: An error occured during pinging camera, skipping..
[13/08/2023, 11:02:57] [CameraUI]  ERROR  TypeError [ERR_INVALID_URL]: Invalid URL
[13/08/2023, 11:02:57] [CameraUI]  ERROR  Tür: FFmpeg prebuffer process exited with error! (null) - [tcp @ 0x559ddb7eb0] Port missing in uri - rtsp://user:pass@18.1.1.11:554/h264Preview_01_main: Invalid argument - 
[13/08/2023, 11:02:57] [CameraUI] Tür: Restart prebuffer session..
[13/08/2023, 11:03:01] [CameraUI] Tür: An error occured during pinging camera, skipping..
[13/08/2023, 11:03:01] [CameraUI]  ERROR  TypeError [ERR_INVALID_URL]: Invalid URL
[13/08/2023, 11:03:01] [CameraUI]  ERROR  Tür: FFmpeg videoanalysis process exited with error! (null) - [tcp @ 0x55bb0e3e30] Port missing in uri rtsp://user:pass@18.1.1.11:554/h264Preview_01_sub: Invalid argument 
[13/08/2023, 11:03:01] [CameraUI]  ERROR  Tür: FFmpeg videoanalysis process exited with error! (null) - [tcp @ 0x55bb0e3e30] Port missing in uri rtsp://user:pass@18.1.1.11:554/h264Preview_01_sub: Invalid argument 

Any advice to correct the issue?

semaf commented 1 year ago

Just found by luck the issue. Do not use symbols in password before "@".

stale[bot] commented 9 months 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.

mkz212 commented 2 months ago

🎉 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: https://github.com/seydx/camera.ui/issues/448 .

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