Remove globals from video implementations to allow further refactoring. Experiment with testing video modes.