In the video, a person is cooking onions in a pan. The onions are being stirred and turned with a wooden spatula. The person then adds garlic to the pan and continues to stir the mixture. The onions and garlic are being cooked until they are golden brown. The person is using a wooden spatula to stir the mixture and ensure even cooking. The pan appears to be on a stovetop, and the person is cooking over medium heat. The onions and garlic are being cooked until they are soft and have a caramelized appearance. The person is using a gentle stirring motion to prevent the onions from burning. The video ends with the person continuing to stir the mixture.