The early versions of MEP had a decent video stabilization that could be coerced to do what you want. It had a window to set on the area to monitor for stabilization which allowed background stabilization without interference by moving objects. As far as I know it was a Magix product, but it became hard to find when they added other vendors products. Now it seems to be gone in 2022. I generally use deshaker in VirtualDub2 for initial dejitter, but now I would like to use the old dejitter software, but poof. The current Vegas dejitter just does the same as VD deshaker, but without the extra features in that software.