The automatic real-time analysis of film editing and transition effects and its applications