OpenChemistry / tomviz

Cross platform, open source application for the processing, visualization, and analysis of 3D tomography data
https://tomviz.org/
BSD 3-Clause "New" or "Revised" License
320 stars 84 forks source link

Cant export animation to movie #1943

Open ercius opened 5 years ago

ercius commented 5 years ago

Describe the bug Trying to save an animation as a AVI file fails.

To Reproduce Steps to reproduce the behavior:

  1. File --> Export Movie
  2. Select VFW AVI file as output type
  3. Accept the defaults for the video output
  4. See error:
    ERROR: In C:\d\buildbot\fff8b192\build\paraview\src\paraview\VTK\IO\Movie\vtkAVIWriter.cxx, line 206
    vtkAVIWriter (0000014BC68B0900): Unable to format C:/Users/Peter.000/Desktop/test/aab.avi Most likely this means that the video compression scheme you selected could not handle the data. Try selecting a different compression scheme.

Expected behavior AVI should be properly output.

Desktop (please complete the following information):

Hardware (please complete the following information):

Notes Exporting to png files works. This can be used to make a movie animation if needed.

psavery commented 5 years ago

Strange - I gave it a quick try on my personal Windows PC this morning (with the sample tilt series), and it seemed to work okay.

ercius commented 5 years ago

I just tried it on another computer. This one is a Microsoft Surface Book 2. When its connected to the base it has a Nvidia card. I ran into the same problem. So its not a intel/nvidia card issue.

I made a discovery though. If you set the X number of pixels above about 2000 then it fails. Try setting your image resolution to something large. Its either the number of pixels or the file size.

ercius commented 5 years ago

Its probably the file size. A 1920x1080 rendering of the example reconstruction with an orbit animation will be about 600 MB! Changing the quality did not affect the file size at all. Maybe the movie being saved as raw? The movie output needs some tuning.

ercius commented 4 years ago

This is also outputting the movie without any compression. That is why the file size is so large. Better look at how the movie is being generated by ffmpeg