Distorted video when I export it

I am recording high speed videos using streampix. This software saves the videos in .seq format, which I then export to .avi using the software default settings. So the problem is, I am getting a highly distorted video when I export it to .avi. distorted_1

I checked the .seq file in streampix, and then in matlab. This is what the .seq file looks like in matlab: matlab

So, the .seq file looks fine, but when I export it, it becomes distorted. How come? And how do I fix this?