Have you tried calling the engine with the movie directly, as suggested above? Just for excluding a problem with your script.