Export Video from Headless Simulation

Hi,

I am currently working to export a video from a headless simulation in Isaac Sim.
I am starting up my simulation from using the SimulationApp interface.

from isaacsim import SimulationApp
kit = SimulationApp({"renderer": "RayTracedLighting", "headless": True})

This starts up Isaac Sim headlessly, but I want to export a video of what is happening as an mp4 similarly to how Isaac Lab will export its video clips, seen in this example: Training with an RL Agent — Isaac Lab documentation

It may be possible to use some of the code from the Movie Capture extension in the python file that I am using to start the headless simulation. Trying to do for me results in this error with the omni.kit.capture:

    import omni.kit.capture.viewport
ModuleNotFoundError: No module named 'omni.kit.capture'

Also is it possible to simply load the Movie Capture extension from a python script instead of rewriting the code that makes it work?

Any help or ideas would be appreciated, thank you!

1 Like

You will have to use a Replicator writer. Please refer to this doc for details.

Regarding importing extensions, please see the details on enabling extensions in this doc.