fail to export animation using FFmpeg
using the same machine, toolchain, libraries, build script, and exporting an animation using the following mwe (
# script.py import paraview.simple as pv reader = pv.ExodusIIReader(FileName='can.ex2') pv.Show(reader); pv.Render() pv.WriteAnimation('movie.avi')
=> no issue with paraview 5.3.0
=> failure with paraview 5.4.0-RC3, with the following output:
[avi @ 0x5c1ba80] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. [avi @ 0x5c1ba80] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [rawvideo @ 0x5c1c4c0] AVFrame.format is not set [rawvideo @ 0x5c1c4c0] AVFrame.width or height is not set Generic Warning: In <SRC_DIR>/VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx, line 449 Problem encoding frame. ERROR: In <SRC_DIR>/VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx, line 620 vtkFFMPEGWriter (0x5e03530): Error storing image.
this is strange, as far as I know, VTK@#312e679b582 is used for both versions of paraview, so I'm wondering what could cause this issue ?
apparently, this bit is failing l. 435
int ret = avcodec_encode_video2(cc, &pkt, this->yuvOutput, &got_frame);
=> I got ret=-22 and got_frame=0