Camera Performance
Hi Seydx,

Thanks for this plugin, for the most part it works quite well, just having issues when opening camera feeds, seems to be very slow and in some cases, the feed wont start and I have to close and start again.

Everything is over gigabit lan, I have tested a single instance of Homebridge in a VM and on a powerful workstation, doesnt seem to make any difference, my cameras all play almost instantly in VLC and from the Dahua Smart PSS software, I have  optimised the cameras encoding to 720p h264 15fps and 1500mbps, any lower and the feed looks like hot garbage, I have also tested direct copy and re-encoding, but nothing seems to speed up the feed, and in some cases the feed will just freeze.

Doesn't seem to matter if its the VM or my workstation, system will only be at 5% even when re-encoding, and I'm only trying to access one camera at a time, the web-UI will struggle to load all 9 cameras, but I expected that.

I'm not sure where the delay is coming from, I setup a cheap IP cam on its own, tested it to my iphone through the native app and its almost instant, then tested through VLC and its almost instant, then set it up in the plugin and its slow to load, both with copy and encode, is this the nature of Homekit video? or something else bottlenecking the feed?

Its not my network or my wifi, its all Ubiquiti and highend equipment and I have ran multiple tests trying to find the issue, all my cameras are good quality Dahua units, have tried H264 and H265, 265 wont do copy, and when trying to re-encode, it looks like FFMpeg will struggle at times, but H264 is fine.

Any advice on what I can try? as I have 9 cameras and multiple wall mounted ipads that I want to access them on.

Below is a typical setup I'm using:

{
                    "name": "Pool Area",
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://user:password@192.168.0.212:554//cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif",
                        "maxStreams": 4,
                        "vcodec": "copy",
                        "audio": true
                    }
                },