1. A method, comprising: performing, by one or more computers: partitioning an input video sequence into one or more factorization windows and one or more transition windows according to two-dimensional (2D) feature trajectories in the video sequence, each window including one or more contiguous frames of the video sequence, wherein a factorization window includes frames to be processed by a factorization window stabilization technique, and wherein a transaction window includes frames to be processed by a transition window stabilization technique; applying the factorization window stabilization technique to each of the one or more factorization windows; applying the transition window stabilization technique to each of the one or more transition windows; and applying one or more warping models to the frames in the video sequence according to the smoothed feature trajectories to generate a stabilized video sequence.