Issue when saving animation in .avi

Hi,

I built Paraview 5.9.0 using the following cmake command line

cmake \
    -DPARAVIEW_USE_PYTHON=ON \
    -DPARAVIEW_USE_MPI=ON \
    -DPARAVIEW_ENABLE_XDMF2=ON \
    -DPARAVIEW_ENABLE_XDMF3=ON \
    -DPARAVIEW_ENABLE_FFMPEG=ON \
    -DQT5_DIR=$QT5_DIR \
    -DVTK_SMP_IMPLEMENTATION_TYPE=TBB \
    -DCMAKE_BUILD_TYPE=Release \
    ..

where QT5_DIR points to a Qt installation.

I also installed the following libraries for ffmpeg support viat apt

libavcodec-dev
libavformat-dev
libswscale-dev
libavdevice-dev
libavfilter-dev
libavresample-dev

When I try to save an animation in .avi format, I got this error

Warning: In /home/kihiro/Softwares/paraview/Remoting/Animation/vtkSMSaveAnimationProxy.cxx, line 326
vtkSMSaveAnimationProxy (0x55aa0a0df3e0): The requested resolution '(1517, 792)' has been changed to '(1516, 792)' to match format specification.

Generic Warning: In /home/kihiro/Softwares/paraview/VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx, line 114
Could not open the avi media file format.

ERROR: In /home/kihiro/Softwares/paraview/VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx, line 753
vtkFFMPEGWriter (0x55aa053e5a80): Error initializing video stream.

Looks like it fails on a call to av_guess_format. Any idea why this happens?

Thanks.

Can you try saving png images instead ?

Thanks for your response. I can, I was just wondering if something is wrong in my set-up. Or if it is a known issue in this version. I spent some time to figure out how to correcly enable ffmpeg so I am a little bit disappointed it doesn’t work :slightly_smiling_face:

Well, it si supposed to work. Which os are you using ?

popos 18.04 (basically ubuntu)

I managed to solve the problem by building the most recent ffmpeg. The ones from apt seemed to be the problem.