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
325 stars 87 forks source link

FFMPEG vides can crash Powerpoint (Windows) #2291

Open ercius opened 1 year ago

ercius commented 1 year ago

Describe the bug Tomviz 2.0RC4 utilizes FFMPEG (by default) to export movies. The codec selected by default (and is unchangeable) outputs the movie as (from ffprobe): Video: mjpeg (Baseline) (MJPG / 0x47504A4D)

This has crashed my Windows 11 laptop during PowerPoint presentations only when using an external monitor.

If you run into this issue you can re-compress the movie in newer versions of PowerPoint using File - Info - Compress media. Or you can re-compress the video using ffmpeg to the preferred MP4 container and H.264 codec. This also reduces the file size without any visible change to quality.

I just wanted to post this in case others have the same issue. Tomviz could consider changing the default codec and/or allowing for more codec options. Im not sure how a codec change would affect Mac and Linux users but H.264 is a well supported codec now.

Hardware (please complete the following information):

Additional context This ONLY happened when I connected my laptop to an external monitor and so it did not happen until I was in front of the audience. I have reproduced it with different setups so I know it has to do with connecting to an external monitor for some reason.