CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Scripting: Framerate when saving animation...

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2019, 09:58
Default Scripting: Framerate when saving animation...
New Member
Mark Herskind
Join Date: Oct 2010
Posts: 12
Rep Power: 13
MarkHerskind is on a distinguished road

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...

SaveAnimation('/data/gompute/home/74682/OF-Cases/test_3/output/alpha.avi', renderView1, ImageResolution=[2000, 848], FrameRate=10, FrameWindow=[0, 200])
Any ideas why this doesn't work?

I'm working in Paraview 5.6.0-RC3 64bit in Linux...

MarkHerskind is offline   Reply With Quote

Old   March 7, 2019, 03:44
Super Moderator
flotus1's Avatar
Join Date: Jun 2012
Location: Germany
Posts: 2,820
Rep Power: 40
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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.
flotus1 is offline   Reply With Quote


framerate, paraview, pvbatch, pvpython, scripting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Saving paraview animation Maxwell87 ParaView 2 August 25, 2019 16:44
Saving animation of particle tracking pranab_jha FLUENT 2 March 5, 2016 04:59
[] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
[OpenFOAM] Prevent Resolution changing when saving animation? munkifisht ParaView 0 May 19, 2015 07:24
[OpenFOAM] Paraview 3.12 memory allocation problem while saving animation jgomez ParaView 17 September 14, 2013 17:03

All times are GMT -4. The time now is 15:59.