Patent ID: 9621896
Date: 2017-04-11
CPC Classifications: H04N

Claim:
1. A method of macroblock-level quality-aware video optimization of an encoded video stream comprising one or more video frames, each video frame comprising a plurality of macroblocks, each macroblock comprising a plurality of pixels, the method comprising: receiving an encoded macroblock; decoding the encoded macroblock; extracting a first quantization parameter, wherein the first quantization parameter corresponds to quantization settings originally used for compressing the encoded macroblock; determining first and second thresholds as a function of past input quantization parameters, wherein the past input quantization parameters correspond to quantization settings originally used for compressing a plurality of previously received encoded macroblocks; computing a second quantization parameter based at least in part on the first quantization parameter, the first and second thresholds, and a number of bits occupied by the encoded macroblock; re-encoding the decoded macroblock based on the second quantization parameter; and providing the re-encoded macroblock.