How to capture a movie in a python standalone application

I noticed that in the isaac sim interface, there is the movie capture under the Rendering. But if use standalong application, how to capture a movie of the simulation process?