flash encoding using ffmpeg

ffmpeg -i movie.avi -sameq movie.flv

If you have issues with the sound and just want to remove it:

ffmpeg -i movie.avi -an -sameq movie.flv