In the video, a person is cooking onions in a pan. They add a spoonful of garlic to the pan and stir it in with a pink spatula. The onions are already in the pan, and the garlic is added to them. The person stirs the garlic into the onions, mixing them together. The pan is on a stove, and the person is cooking the onions and garlic together.