Method and System for Detecting Audio and Video Scene Changes