I haven’t seen this in about 7 years, so please excuse the rather vague description.
The movie had to do with an alien race taking over Earth in a matter of minutes, and enslaving the humans. Toward the end, some guy escapes and finds a library learning about how far they had come as a race years and years ago. He eventually develops an escape plan to rescue the other humans he was trapped with.