|
[Sponsors] |
[General] Scripting: Framerate when saving animation... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 3, 2019, 10:58 |
Scripting: Framerate when saving animation...
|
#1 |
New Member
Mark Herskind
Join Date: Oct 2010
Posts: 12
Rep Power: 16 |
Hi..
I'm making a script to automatically save an animation from Paraview.. The simulation is 20sec and in 0.1sec timesteps.. I would like to save the video with a framerate of 10, so that it will be in real-time.. When saving manually and tracing it works as it is supposed to, but the running pvbatch/pvpython the framerate is ignored, and the video is save in 1fps, which gives a play-time of 200secs (3min 20secs) instead... Code:
SaveAnimation('/data/gompute/home/74682/OF-Cases/test_3/output/alpha.avi', renderView1, ImageResolution=[2000, 848], FrameRate=10, FrameWindow=[0, 200]) I'm working in Paraview 5.6.0-RC3 64bit in Linux... Thanks! Mark |
|
March 7, 2019, 04:44 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
When dealing with animations in Paraview -or any other software for that matter- I export images instead of video files. Then you can use e.g. FFMPEG to get the exact animation you want.
Not exactly the solution to your question, but a solution that works 100% of the time and gives you more flexibility. |
|
Tags |
framerate, paraview, pvbatch, pvpython, scripting |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Saving paraview animation | Maxwell87 | ParaView | 2 | August 25, 2019 17:44 |
Saving animation of particle tracking | pranab_jha | FLUENT | 2 | March 5, 2016 05:59 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
[OpenFOAM] Prevent Resolution changing when saving animation? | munkifisht | ParaView | 0 | May 19, 2015 08:24 |
[OpenFOAM] Paraview 3.12 memory allocation problem while saving animation | jgomez | ParaView | 17 | September 14, 2013 18:03 |