In the video, a person is cooking onions in a pan. They add salt and pepper to the onions and stir them with a wooden spoon. They also add oil to the pan.