1. A video processing apparatus comprising: a video content analysis module to analyze an input video sequence and to derive at least one video primitive; an event inference module coupled to said video content analysis module to detect at least one event based on one or more rules; and an application programming interface (API) framework coupled to said event inference module to permit a user to define rules for said event inference module.