Patent attributes
Disclosed by way of example embodiments are a system and a computer implemented method for adaptively encoding a video by changing compression rates for different frames of the video. In one aspect, two frames of a video are compared to determine a compression rate for compressing one of the two frames. Hash images may be generated for corresponding frames for the comparison. By comparing two hash images, a number of stationary objects and a number of moving objects in the two frames may be determined. Moreover, a compression rate may be determined according to the number of stationary objects and the number of moving objects.