1. A method of encoding video, the method comprising: a) identifying a first visual masking strength for a first portion of a first image in the video sequence, wherein the visual masking strength quantifies a degree to which coding artificats are not perceptible to a viewer due to complexity of the first portion; and b) encoding at least a part of the first image based on the identified first visual masking strength.