Difference between revisions of "Installing PyBioSim"
(→Prerequisites) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
* Python 2.7([https://www.python.org/download/releases/2.7.8/ Download Page]) | * Python 2.7([https://www.python.org/download/releases/2.7.8/ Download Page]) | ||
* Numpy ([http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/ Download Page]) | * Numpy ([http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/ Download Page]) | ||
− | * Matplotlib ([http://matplotlib.org/downloads.html Download Page]) | + | * Matplotlib 1.4.3([http://matplotlib.org/downloads.html Download Page]) |
* FFMPEG, for encoding video.([https://www.ffmpeg.org/ Download Page]) | * FFMPEG, for encoding video.([https://www.ffmpeg.org/ Download Page]) | ||
Line 35: | Line 35: | ||
'''Step 3''': Set the current directory of your command prompt to the /images folder.Execute the command | '''Step 3''': Set the current directory of your command prompt to the /images folder.Execute the command | ||
− | <pre> >ffmpeg - | + | <pre> >ffmpeg -framerate 30 -i "1%08d.png" -r 30 outPut.mp4 |
+ | ^ ^ | ||
+ | Framerate matched with simulator </pre> | ||
The number after -r denotes the framerate of the video, its set to 30 in the above example. | The number after -r denotes the framerate of the video, its set to 30 in the above example. | ||
Set it to be the same as your simulator's fps. | Set it to be the same as your simulator's fps. |
Latest revision as of 19:54, 12 March 2015
Contents
System Requirements
Make sure your system meets these requirements:
- Operating system: Anything that runs Python 2.7(Windows, Mac and Linux)
- RAM: 2GB.
- Disk space: 2GB
Prerequisites
- Python 2.7(Download Page)
- Numpy (Download Page)
- Matplotlib 1.4.3(Download Page)
- FFMPEG, for encoding video.(Download Page)
Downloading the simulator
Step 1: Link to the GitHub repository.
https://github.com/arindam1993/PyBioSim
Step 2: Clone the repo to your desktop or just click "Download Zip" on the github page.
Step 3: Place the extracted files into a suitable folder, set the current working directory of your command prompt/terminal to this folder, and execute the following command.
>python Simulator.py
This should writing out the images into the /images folder.
Step 4: Simulator Setup is done!
Compiling the image sequence into a video
Step 1: Download and install FFMPEG for your platform, on your command prompt run.
>ffmpeg
Step 2: If you get "Command not found", add the /bin folder inside ffmpeg directory to your PATH.
Step 3: Set the current directory of your command prompt to the /images folder.Execute the command
>ffmpeg -framerate 30 -i "1%08d.png" -r 30 outPut.mp4 ^ ^ Framerate matched with simulator
The number after -r denotes the framerate of the video, its set to 30 in the above example. Set it to be the same as your simulator's fps.