tfix animation call - sphere - GPU-based 3D discrete element method algorithm w… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit c3ebf6d9df5f0c497d21a1f3f26e294c9346f69f | |
parent c17f6ce2b470990a6183b61a7d8855d0e3debcb9 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 10 Apr 2015 13:28:46 +0200 | |
fix animation call | |
Diffstat: | |
M python/sphere.py | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -6884,8 +6884,10 @@ class sim: | |
sb.currentNormalStress('defined')/1000.), | |
outfolder = '../img_out/') | |
+ # render images to movie | |
subprocess.call('cd ../img_out/ && ' + | |
- 'ffmpeg -sameq -i {}.%05d-contacts.png'.format(self.sid), | |
+ 'ffmpeg -sameq -i {}.%05d-contacts.png '.format(self.sid) + | |
+ '{}-contacts.mp4'.format(self.sid), | |
#'convert -quality 100 {}.*.png {}-contacts.avi'.format( | |
#self.sid, self.sid), | |
shell=True) |