How to keep the video in headless mode?

In order to get the result of training, I add an camera in the env as below:

And I will keep the camera image if needed:

  • Why is there only terrain but no actors in my video:

can you share the code of camera setting,rendering and converting to video?
thanks

I have already deal with it. Thanks a lot. By using self.gym.fetch_results(self.sim, True)