Ok, so I encode all the vob files to an AVI file using Flaskmpeg. The whole process goes fine and completes without any errors. Then, I go into Windows Explorer and double-click on the file. Immediately, I get an error that says "Explorer.exe Application Error. The exception Integer division by zero occurred in the application at location blah blah blah." I get this on SOME of the files I encode with FlaskMpeg, not all of them but when I do get it, the file is completely unusable and my computer crashes everytime I try to open the video.

What causes this? Does it have something to do with the iDCT thing?