MilestoneSystemsInc / PowerShellSamples

A collection of samples for managing your Milestone XProtect VMS using MilestonePSTools in PowerShell
https://www.milestonepstools.com
MIT License
36 stars 12 forks source link

Get-VmsCameraStream drastically slower starting in version 22.3.1 #102

Open Tarterman opened 1 year ago

Tarterman commented 1 year ago

I didn't notice this sooner but Get-VmsCameraStream is way slower starting in version 22.3.1 of MilestonePSTool. I noticed this when playing around with Set-AdaptiveStreaming and realized it was really slow, even for one camera. Below is a screenshot of a command from that function being run in 22.3.0. You can see it took 1.12 seconds to run.

image

Here is that same command run against the same system and camera in 22.3.1 (I get the same results in the 23.1.x and 23.2.x versions). You can see it took 40.77 seconds.

image

Narrowing the command down to just getting the camera streams, this is from 22.3.0.

image

This is from 22.3.1.

image

I got the same results running against a 2023 R1 and 2019 R3 system and running from separate machines.

Tarterman commented 1 year ago

One thing I should clarify after more testing is that the more streams a camera has, the longer it takes. The examples I used above were done on an Axis camera which has 8 streams.