Dahua DH-SD22204T-GN
**Manufacturer/Model:**
Dahua DH-SD22204T-GN

**Homebridge Config:**

```json
{
    "bridge": {
        "name": "Homebridge XXXX",
        "username": "XX:XX:XX:XX:XX:XX",
        "port":8888,
        "pin": "XXX-XX-XXX"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8888,
            "platform": "config"
        },
        {
            "cameras": [
                {                    "name": "Gate Camera",
                    "manufacturer": "Dahua",
                    "model": "DH-SD22204T-GN",
                    "serialNumber": "yourcameraserialnumber",
                    "firmwareRevision": "yourcamerafirmwarerevision",
                    "motion": true,
                    "motionTimeout": 35,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://yourcamerauser:yourcamerapassword@yourcameraIP:554/cam/realmonitor?channel=1&subtype=0",
                        "vcodec": "copy",
                        "maxFPS": 4,
                        "maxStreams": 2,
                        "maxWidth": 704,
                        "maxHeight": 576,
                        "packetsize": 1316,
                        "maxBitrate": 1000,
                        "audio": true,
                        "mapaudio": "0:1?",
                        "debug": true
                    }}
],
            "platform": "Camera-ffmpeg"
        }
    ]
}
```

**Additional Information:**
<!-- If there is any other information that would be helpful, share it here. -->
Setting "vcodec" value as "copy" let you to use even old (2015) weak (RAM 512 MB) OrangePiOne as HomeBridge with 2-5% CPU load for 11 cameras simultaneously
"maxFPS" could be set to 14 if your camera is in good wired network
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
