Fixes issue #2482 and recasts xrange as iter

Changed the order of the arguments such that the frame rate and number of frames is an argument for the output not for the input: since FFMpeg 2.0 applying output flags to input files and vice-versa will cause an error.

Also cast an `xrange` object in `iter()` in `FuncAnimate`, as this was causing issues on my machine.