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

Failed to resolve hostname Temporary failure in name resolution Input/output error #920

Open josephx66 opened 2 months ago

josephx66 commented 2 months ago

I have plugged the rtsp feed into the config like so:

            "cameras": [
                {
                    "name": "Middle Camera",
                    "motion": false,
                    "motionTimeout": 15,
                    "unbridge": true,
                    "hsv": false,
                    "prebuffering": false,
                    "forcePrebuffering": false,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://fairviewcameras.ddns.net/cam/realmonitor?channel=2&subtype=0",
                        "subSource": "-i rtsp://fairviewcameras.ddns.net/cam/realmonitor?channel=2&subtype=1",
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "vcodec": "copy",
                        "acodec": "copy",
                        "audio": false,
                        "debug": true,
                        "stillImageSource": "-i rtsp://fairviewcameras.ddns.net/cam/realmonitor?channel=2&subtype=0"
                    },
                    "smtp": {
                        "email": "Middle Camera"
                    },
                    "videoanalysis": {
                        "active": false
                    },
                    "mqtt": {}
                },...

but still get this error: [4/19/2024, 2:59:20 PM] [CameraUI] ERROR Middle Camera: Failed to fetch snapshot. Showing "offline" image instead. [4/19/2024, 2:59:20 PM] [CameraUI] ERROR Middle Camera: [tcp @ 0x55ab047a6200] Failed to resolve hostname fairviewcameras.ddns.net: Temporary failure in name resolution rtsp://fairviewcameras.ddns.net/cam/realmonitor?channel=2&subtype=0: Input/output error [4/19/2024, 2:59:20 PM] [CameraUI] Middle Camera: Sending snapshot: 1280x720 [4/19/2024, 2:59:20 PM] [CameraUI] Middle Camera: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v

I can run this rtsp feed in any viewer, so i know that the URL is correct

josephx66 commented 2 months ago

The issue is fixed when i enter the IP address directly rather than using the DDNS address i have created here. The DDNS address is correct as i can ping the address from my console @seydx