PhysicsSimulationEngine-VideoCompiler
A python video compiler that creates video based on data given by the pSEngine Recorder class.
- Python 3.X or a newer version
- FFMPEG set up as an environment variable (so you can run 'ffmpeg ' inside a command prompt)
- Download all of the above requirements
- Use the Recorder class in pSEngine (find the documentation of pSEngine online) to generate a data file in JSON format.
- Copy the generated JSON file inside the folder datas/
- Then you have two choices:
- Rename your generated JSON file json-datas.json
- Open the run.bat file with a text editor, and change the json-datas string to whatever your file name is (just make sure you don't write the .json extension at the end of the file name)
- Run the run.bat file by double-clicking on it
- When finished, the video will be generated as datas/ouput.mp4