This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
How can I record a video of my simulation? #42
stephane-caron
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a quick and dirty solution, you can record your whole desktop using e.g. kazam. However, with this approach the video time will be your system time, potentially slowed down by all other processes
running on your machine (including
kazam
itself).To record a video synchronized with your simulation time, call
sim.record("filename.mp4")
. This will schedule an extraCameraRecorder
process that takes a capture of your simulation window after each step. You can then run your simulation as usual. Once your simulation is over, call themake_pymanoid_video.sh
script created in the current folder. It will reassemble screenshots into a properly timed videofilename.mp4
.Beta Was this translation helpful? Give feedback.
All reactions