A system for determining a light effect to be rendered while media content is being rendered, said light effect being determined based on an average of a plurality of color values, said plurality of color values being extracted from a plurality of frames of said media content, said system comprising: at least one input interface; at least one output interface; and at least one processor configured to: - use said at least one input interface to obtain media content information comprising media content, - determine a first color value based on a color value extracted from a current frame of said media content, - determine one or more second color values based on one or more color values extracted from a plurality of previous sequential frames of said media content, - detect a transition in said media content and/or in a rendering of said media content, - adjust a first weight for weighting said first color value in a calculation of an average color, adjust one or more second weights for weighting said one or more second color values in said calculation of said average color, and/or adjust said one or more second color values upon detecting said transition in said media content, in said calculation of said average color, - calculate said average color from said weighted first color value and said one or more weighted, respectively adjusted, second color values, - determine one or more light effects based on said average color, and - use said at least one output interface to control one or more lighting devices to render said one or more light effects and/or store a light script specifying said one or more light effects. at least one input interface; at least one output interface; and at least one processor configured to: - use said at least one input interface to obtain media content information comprising media content, - determine a first color value based on a color value extracted from a current frame of said media content, - determine one or more second color values based on one or more color values extracted from a plurality of previous sequential frames of said media content, - detect a transition in said media content and/or in a rendering of said media content, - adjust a first weight for weighting said first color value in a calculation of an average color, adjust one or more second weights for weighting said one or more second color values in said calculation of said average color, and/or adjust said one or more second color values upon detecting said transition in said media content, in said calculation of said average color, - calculate said average color from said weighted first color value and said one or more weighted, respectively adjusted, second color values, - determine one or more light effects based on said average color, and - use said at least one output interface to control one or more lighting devices to render said one or more light effects and/or store a light script specifying said one or more light effects. - use said at least one input interface to obtain media content information comprising media content, - determine a first color value based on a color value extracted from a current frame of said media content, - determine one or more second color values based on one or more color values extracted from a plurality of previous sequential frames of said media content, - detect a transition in said media content and/or in a rendering of said media content, - adjust a first weight for weighting said first color value in a calculation of an average color, adjust one or more second weights for weighting said one or more second color values in said calculation of said average color, and/or adjust said one or more second color values upon detecting said transition in said media content, in said calculation of said average color, - calculate said average color from said weighted first color value and said one or more weighted, respectively adjusted, second color values, - determine one or more light effects based on said average color, and - use said at least one output interface to control one or more lighting devices to render said one or more light effects and/or store a light script specifying said one or more light effects.