We present an adaptive feature extraction and annotation algorithm for articulating traffic events from surveillance cameras. We use approximate median filter for moving object detection, motion energy image and convex hull for lane detection, and adaptive proportion models for vehicle classification. It is found that our approach outperforms three-dimensional modeling and scale-independent feature transformation algorithms in terms of robustness. The multiresolution-based video codec algorithm enables a quality-of-service-aware video streaming according to the data traffic. Furthermore, our empirical data shows that it is feasible to use the metadata to facilitate the real-time communication between an infrastructure and a vehicle for safer and more efficient traffic control.