Trying to SaveAnimation in pvbatch with an MP4 fails

I have a Python script that I’m running in pvbatch, and when I use:

SaveAnimation( 'testing.mp4', render_view, ImageResolution=[1920, 1080], FrameRate=30 )

as derived from my trace, I get a Failed to determine format error:

3356899|>  (   3.567s) [pvbatch         ]vtkSMSaveAnimationProxy:396    ERR| vtkSMSaveAnimationProxy (0x1bcda4c0): Failed to determine format for 'testing.mp4'

If I export to an AVI file using the same overall structure:

SaveAnimation( 'testing.avi', render_view, ImageResolution=[1920, 1080], FrameRate=30 )

it works as expected. Any thoughts on what might be happening?

Hi @GregVernon

Is this on the same paraview installation ?

Best,

I derived the trace from my Windows installation using the GUI to build the trace, and I’m trying to run pvbatch on a headless server.

ParaView on linux does not have the same video capabilities as on windows, I would suggest to save as multiple .png and create a mp4 using ffmpeg.