improve video filter preparation and other minor stuff