Video processing method, computer readable medium containing instructions that implement the method and system of processing video

Video processing method comprising: detecting whether or not one or more activities in a video sequence; If one or more activities are detected, generating one or more primitives; if they generated one or more primitive infer whether or not one or more events of interest in the video sequence based on primitive generated; if not generated primitive, encode the video stream for video encoded at a first transmission bit rate at a first frame rate and a first resolution; if they generated one or more primitive and no events of interest are inferred, encoding the video sequence to obtain encoded video to a second transmission rate bits to a second frame rate and a second resolution, at least one of the second transmission bit rate, the second frame rate and the second rate higher than the first transmission bit resolution, the first frame rate and the first resolution, respectively; If infers one or more events of interest, encoding the video sequence to obtain encoded video to a third transmission rate bits at a third frame rate and a third resolution, at least one of the third transmission rate bits, the third frame rate and the third higher than the second transmission bit rate resolution, the second frame rate and the second resolution, respectively; and transmitting said encoded video.