International audienceWe present ab initio calculations of spectral line shapes for foreign-perturbed hydrogen molecule and itsvalidation against experimental data. Two collisional effects substantially influencing the shape of opticalresonance have to be considered: the phase- or state-changing collisions and the velocity-changingcollisions. We calculate these two contributions originating from the interaction potential