There's a small but handy program capturing and editing different video formats including avi. It's called Virtual Dub,
http://www.virtualdub.org/index. One of the built-in filters includes the ablity to rotate movies 90 degrees left or right, or 180 degrees.
Enjoy.