Creating mp4 files compatible with Flowplayer using ffmpeg

I'm using the excellent embeddable flash applet, Flowplayer to display videos online taken with my digital camera. Unfortunately my dc saves videos in an AVI container with MJPEG video and PCM audio so I have to convert them to a more web-friendly and modern format using ffmpeg.

ffmpeg -vcodec h264 -b 1000k -acodec aac -ab 128k -i input.avi output.mp4