homebridge-plugins/homebridge-camera-ffmpeg

Digest auth is not working

ctosae opened this issue · 1 comments

This stillImageSource setting doesn't work

                {
                    "name": "Camera",
                    "unbridge": false,
                    "videoConfig": {
                        "source": "-i rtsp://admin:X@192.168.1.3:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif",
                        "stillImageSource": "-i http://admin:X@192.168.1.3/onvifsnapshot/media_service/snapshot?channel=1&subtype=0",
                        "audio": false
                    }
                },

But this works:

# wget "http://admin:X@192.168.1.3/onvifsnapshot/media_service/snapshot?channel=1&subtype=0"
--2024-09-02 15:00:51--  http://admin:*password*@192.168.1.3/onvifsnapshot/media_service/snapshot?channel=1&subtype=0
Connecting to 192.168.1.3:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="Login to XXXXX",qop="auth",nonce="XXXXXXXXX", opaque="", stale="false"
Connecting to 192.168.1.3:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54002 (53K) [image/jpeg]
Saving to: ‘snapshot?channel=1&subtype=0’

snapshot?channel=1&subtype=0                    100%[=======================================================================================================>]  52.74K  --.-KB/s    in 0.04s

2024-09-02 15:00:51 (1.26 MB/s) - ‘snapshot?channel=1&subtype=0’ saved [54002/54002]
# file snapshot\?channel\=1\&subtype\=0
snapshot?channel=1&subtype=0: JPEG image data, comment: "DHAV\373", baseline, precision 8, 640x480, components 3

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.