Are you referring to the guard retention progressions used by Keenan in the first part? The basic idea of using the hip escape before the opponent settles into side control is to turn inward and use the back leg to move your hips away, thereby creating more space between you and the passer. The goal of the passer is to minimize space, and control the bottom person's hips (usually by going chest-on-chest and controlling the head; if the head is controlled it is difficult to turn inward and hip escape, so head control essentially becomes hip control as well). What Keenan is attempting to do in the video is to stiff arm the passer away, keeping him away from his hips & head. In the clip, the passer (Cardoso) has so much forward pressure that he is able to close the space before Keenan can hip escape out. Keenan then abandons the hip escape and goes for the frame + posting hand.
Watch again at 5:35. Hopefully what I said makes sense.