A method of encoding pixels in a picture of a video sequence comprising multiple pictures, said method comprises: identifying (S1) a pixel to be processed in said picture for which a small change or variation in a linear representation of said pixel color, which is a representation in a linear color space, results in a comparatively large change or variation in a non-linear representation of said pixel color, which is a representation in a non-linear color space, but the change or variation in the linear representation of said pixel color does not negatively affect visual quality, by identifying said pixel for which: a variation in the linear representation of a color of said pixel that is smaller than a first threshold value results in a variation in the non-linear representation of said color that is larger than a second threshold value (S10); and said variation in said linear representation of said color results in a variation in a luminance and chrominance based representation of said color, which is a representation in a perceptual color space, that is smaller than a third threshold value (S11); and processing (S2) said identified pixel by modifying a value of at least one color component of said pixel to reduce variability; converting (S3) said linear representation of said color into the non-linear representation of said color of said pixel; and encoding (S4) said non-linear representation of said color. identifying (S1) a pixel to be processed in said picture for which a small change or variation in a linear representation of said pixel color, which is a representation in a linear color space, results in a comparatively large change or variation in a non-linear representation of said pixel color, which is a representation in a non-linear color space, but the change or variation in the linear representation of said pixel color does not negatively affect visual quality, by identifying said pixel for which: a variation in the linear representation of a color of said pixel that is smaller than a first threshold value results in a variation in the non-linear representation of said color that is larger than a second threshold value (S10); and said variation in said linear representation of said color results in a variation in a luminance and chrominance based representation of said color, which is a representation in a perceptual color space, that is smaller than a third threshold value (S11); and a variation in the linear representation of a color of said pixel that is smaller than a first threshold value results in a variation in the non-linear representation of said color that is larger than a second threshold value (S10); and said variation in said linear representation of said color results in a variation in a luminance and chrominance based representation of said color, which is a representation in a perceptual color space, that is smaller than a third threshold value (S11); and processing (S2) said identified pixel by modifying a value of at least one color component of said pixel to reduce variability; converting (S3) said linear representation of said color into the non-linear representation of said color of said pixel; and encoding (S4) said non-linear representation of said color. <EOS>