Skip to content
Snippets Groups Projects
Commit 33ba9fa1 authored by Sean Bone's avatar Sean Bone
Browse files

Moved explanation of how to make videos to README

parent e42a41ed
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,20 @@ This Git repository has a submodule for libigl. To clone it correctly use either
- [X] 2D FLIP updates
- [ ] Extend to 3D
- [ ] 3D viz
- [ ] MAC3D data structure
- [ ] 3D viz
- [ ] 3D FLIP updates
- [ ] Signed distance function
- [ ] Marching cubes & export mesh at each frame
- [ ] Import meshes into Maya/Blender for rendering
# Making a video from PNGs
This command will take files numbered `0000.png, 0001.png, 0002.png, ...` in folder `PNG_out` (usually generated in the build directory by WaterSim when "Export PNGs" is enabled) and make an MP4 video of them:
ffmpeg -r 40 -f image2 -s 1280x800 -i PNG_out/%04d.png -vcodec libx264 -crf 20 -pix_fmt yuv420p test.mp4
- `-r`: frame rate ( = 1/dt, dt is the timestep used in simulation)
- `-s`: dimensions
- `-crf`: quality, lower is better
- `-i`: input images. Change folder name/location if necessary.
......@@ -23,11 +23,3 @@ Use `m_viewer.append_mesh()` to add a new mesh.
- [Libigl tutorial](https://libigl.github.io/tutorial/)
-
# Making a video from PNGs
Command:
ffmpeg -r 40 -f image2 -s 1280x800 -i PNG_out/%04d.png -vcodec libx264 -crf 20 -pix_fmt yuv420p test.mp4
- `-r`: frame rate ( = 1/dt )
- `-s`: dimensions
- `-crf`: quality, lower is better
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment