1. A method for detecting events in multimedia, comprising: extracting features from the multimedia; sampling the features using a sliding window to obtain a plurality of samples; constructing a context model for each sample; determining an affinity matrix from the models and a commutative distance metric between each possible pair of context models; determining a second generalized eigenvector for the affinity matrix; and clustering the plurality of samples into events according to the second generalized eigenvector.