A method for removing flickering from video recording of objects illuminated by a screen operating on a refresh rate, f sc, among a first value set including screen compatible refresh rate values, f scr, and an ambient lighting operating on certain line frequency, f l, captured by a camera with a certain exposure time, t e, among a second value set including camera compatible exposure time values, comprising: determining whether a non-zero integer number n exists so that t e =n/2f l; if said non-zero integer number n does not exist: removing a current value of t e from the second value set, assigning t e to a value in the second value set fulfilling t e =n/2f l, and going back to the determining whether a non-zero integer number n exists so that t e =n/2f l; if said non-zero integer number n does exist: determining whether non-zero integer numbers for k and I exist so that kf scr =lf l; if said non-zero integer numbers for k and I exist: finishing by implementing t e as the camera's exposure time and f sc as the screen's refresh rate; if said non-zero integer numbers for k and I do not exist: calculating a third value set including values for f scr fulfilling kf scr= lf l where k and I are non-zero integer numbers, and determining whether one or more values in the third value set are equal to one or more values in the first value set; if not one or more values in said third value set are equal to one or more values in the first value set: removing a current value of t e from the second value set, assigning t e to a value in the second value set fulfilling t e =n/2f l, and going back to the determining whether a non-zero integer number n exists so that t e =n/2f l; if one or more values in said third value set are equal to one or more values in the first value set: assigning f scr to one of the one or more values in the third set being equal to one or more values in the first value set; and finishing by implementing t e as the camera's exposure time and f sc as the screen's refresh rate. determining whether a non-zero integer number n exists so that t e =n/2f l; if said non-zero integer number n does not exist: removing a current value of t e from the second value set, assigning t e to a value in the second value set fulfilling t e =n/2f l, and going back to the determining whether a non-zero integer number n exists so that t e =n/2f l; if said non-zero integer number n does exist: determining whether non-zero integer numbers for k and I exist so that kf scr =lf l; if said non-zero integer numbers for k and I exist: finishing by implementing t e as the camera's exposure time and f sc as the screen's refresh rate; removing a current value of t e from the second value set, assigning t e to a value in the second value set fulfilling t e =n/2f l, and going back to the determining whether a non-zero integer number n exists so that t e =n/2f l; determining whether non-zero integer numbers for k and I exist so that kf scr =lf l; if said non-zero integer numbers for k and I exist: finishing by implementing t e as the camera's exposure time and f sc as the screen's refresh rate; if said non-zero integer numbers for k and I do not exist: calculating a third value set including values for f scr fulfilling kf scr= lf l where k and I are non-zero integer numbers, and determining whether one or more values in the third value set are equal to one or more values in the first value set; if not one or more values in said third value set are equal to one or more values in the first value set: removing a current value of t e from the second value set, assigning t e to a value in the second value set fulfilling t e =n/2f l, and going back to the determining whether a non-zero integer number n exists so that t e =n/2f l; if one or more values in said third value set are equal to one or more values in the first value set: assigning f scr to one of the one or more values in the third set being equal to one or more values in the first value set; and finishing by implementing t e as the camera's exposure time and f sc as the screen's refresh rate. calculating a third value set including values for f scr fulfilling kf scr= lf l where k and I are non-zero integer numbers, and determining whether one or more values in the third value set are equal to one or more values in the first value set; removing a current value of t e from the second value set, assigning t e to a value in the second value set fulfilling t e =n/2f l, and going back to the determining whether a non-zero integer number n exists so that t e =n/2f l; assigning f scr to one of the one or more values in the third set being equal to one or more values in the first value set; and finishing by implementing t e as the camera's exposure time and f sc as the screen's refresh rate.