Cannot import video into iMovie

imovieimportvideo

I have an avi file that takes 350mb; I go into iMovie and i create a new project, then i create a new event and then i click on import video, i go to the right directory, to the avi file and click on import. The import window disappear and appear a loading bar that says something like "Optimizing the video…" and in 1 second it disappear (… i don't see the bar load). Nothing else happens, but the video is not imported.
Why?

More informations

I tried to uncheck the optimization option but another loading bar appear saying "Loading video", when the bar is completed another bar appear and disappear immediately. It doesn't change anything: my video cannot be imported.

Some more try

Downloading Perian and Divx codec doesn't solve the problem.

Best Answer

Just to echo what another user said in a comment, if installing Perian and DivX didn't work you might try converting the video. Just download Handbrake and convert your video to H.264, then try importing that into iMovie.