Traffic congestion is a significant problem in urban cities and affects economic, health, and social questions. Although many works have been published in the last years to traffic applications based on video data, different techniques of computer vision can be explored in this area. In this work, we proposed a method for traffic flow classification using StarRGB and Convolutional Neural Networks (CNN). The StarRGB describes a global representation of the traffic video into a colored image based on motion elements in the scene. Then, the generated image passed as input to a pre-trained CNN to extract the features and classify the traffic video activity in three classes: LIGHT, MEDIUM, and HEAVY. In our experiments using a traffic video database, the proposed method reached an accuracy of 96.47%. Also, the results suggest that StarRGB is a good descriptor for traffic video applications.