Fixed it. Apparently mental ray dosent like avi files so converted it to a sequence of tiffs and it works fine