The other way to fix the issue if you have very few real-time effects on your timeline, is to make sure the “Full” or dark green line is checked in your “Sequence/Render Selection” or “Sequence Render All” drop down menu. Then go ahead and render the few effects. This will turn the line above the effects blue and you’ll be able to get a clean AVI file.