I have some video shot in a theater, where the camera's automatic gain was going up and down as a dancing couple rotates exposing first her bright dress, then his black tailcoat. This causes the background to become darker and brighter. Here is a few seconds showing the problem (2x speedup just to make it more obvious):
http://www.bealecorner.com/D30/misc/AGC-problem-2x.mp4
Is there some clever way to improve this in post, either in Vegas, or maybe an Avisynth script? Hopefully not requiring manual adjustments of each frame?