Where is the video file recorded within Windows?

Discussion in 'Visualization' started by inksci, Oct 16, 2017.

  1. After recording the video, mujoco told me that the video file has already saved into "/tmp/video_0000000.mp4"

    The OS I use is Windows, so where can I find the video file and thanks a lot!

    Moreover, there was error when I press the key "V" the second time to turn off the video recorder. It might be the error resulted from mujoco-py.
            An attempt has been made to start a new process before the
            current process has finished its bootstrapping phase.
            This probably means that you are not using fork to start your
            child processes and you have forgotten to use the proper idiom
            in the main module:
                if __name__ == '__main__':
            The "freeze_support()" line can be omitted if the program
            is not going to be frozen to produce an executable.
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    How are you recording the video file? If you are using the code sample record.cpp that comes with MuJoCo, the output file name is given as a command-line argument. If you are using mujoco-py, you should check on the OpenAI forum; I haven't actually used mujoco-py.
  3. Hi @inksci,
    One simple hack to get it to work is to go to your python directory, site-packages/mujoco_py/mjviewer.py and on line 144 ("self._video_path = "/tmp/video_%07d.mp4"") change the address to some local one (e.g., C:/ in windows or ~/Documents/ in Mac). You can then find the recorded video there.