The approach that you need to follow, I think that it is quite easy and obvious:
- detect the the laser point
- track it through the video frames
- keep history of the laser point coordinates from each frame into a buffer (i.e. vector<point>)
- draw line between the each point into the vector at the end of the video or as the video is running if you want to have a direct visualization
and that's it.