Patent attributes
A method and system transcodes an input video to a lower spatial resolution. The input video is first decoded into pictures. Each picture includes a set of macroblocks. Each picture sub-sampled to a downscaled picture having a lower spatial resolution. A quantization scale is selected for each macroblock in the downscaled picture. A set of motion vectors is generated for each macroblock in the downscaled picture. A multiplier value based on the quantization scale is determined for each macroblock in the downscaled picture. One of a plurality of encoding modes is selected for each macroblock in the downscaled picture according to the quantization scale, the motion vectors, and the multiplier value. Then, each macroblock in each downscaled picture is encoded according to the quantization scale, the selected encoding mode, and the set of motion vectors to produce an output video having a lower spatial resolution that the input video.