Draw 2D line from A to B in video

Dear Experts,
I would like to create a line in video for underlining. How to create a line which moves from A to B?

Thank you