Truck arrives, gates begin to drop at 0:05. (Notice the only object much taller than fully lowered gate is the cab; the flatbed could have slip-slid right under.)
Trucker's decision is made at 0:15. This is ten full seconds looking out the driver's side window at the possibly visible-by-then train.
0:22 is the moment before impact, and the cab is not fully over the tracks at all. This is seven seconds after starting, and about 1/3rd the way over the track. If we consider that it would take 14 seconds to haul the other 2/3rds of the whole rig across, then...
If we consider what would have happened if the driver had bolted through at 0:05, while the train crosses at 0:22, that allows 17 seconds.
It could have been fully possible for a brass-balled psycho to pull this off with a smidgen of room to spare, if you can really boil down accidents to mathematics.
You forgot how he tries to back up at 0:11 but can't because the other arm is right behind his cab. Why the hell he didn't just stay there is beyond me. But it was a long-ass train.