How does photogrammetry work?

Hmm, okay I think I understand. I ask because I wanted to try and put something together. I’m not sure if it will work, or how similar it is to photogrammetry in general. It is different than anything I have seen so far though.

I was thinking of using an image processing library to detect shapes in an image and draw them on screen (2D). That is an easy task. However I thought, if you could easily (and accurately) draw shapes from a single image; could you successfully take a video recording of an object, and process the video file frame by frame to gather shape information, and eventually gather enough data to build a 3D model?

With a video file you would likely have enough information to rebuild shapes and objects. Of course the video recording would have to be sufficient in terms of the view angle throughout the recording, but if you had enough shots of an object(s) at different angles then it might work.

Does this already exist by any chance? I have seen it done with a series of images, but never with a video recording, which would likely provide more data.