A person who has committed a direct contempt of court may be found guilty and punished therefor by the court without any trial, after affording him an opportunity to be heard orally by way of defense or mitigation. The court shall render an order reciting the facts constituting the contempt, adjudging the person guilty thereof, and specifying the punishment imposed.