was beginning
would begin / used to begin (habitual past)
Le film commençait à peine quand je suis arrivé.
The movie was barely starting when I arrived.