For applying a motion filter of a video stabilization system to a sequence
of video frames, an estimate of a motion in the current video frame
compared to a first video frame of the sequence of video frames is
received. Based on the received motion estimate and on at least one state
variable of the motion filter, a correction value for the motion in the
current video frame is computed. The at least one state variable is
updated in the computation. In case the computed correction value exceeds
a system constraint of the video stabilization system, the at least one
state variable is adjusted in accordance with an extent by which the
system constraint is exceeded. The correction value is then recomputed
based on the motion estimate and on the adjusted state variable.