avi support (beta)

Experimental support for avi files has been added. Let the bug reports
commence.