Just a short note, perhaps I will wirte a longer version later. The following command will convert an avi file to a mobile video that works on a Nokia E65 mobile phone:
ffmpeg -i input.avi -s 320×240 -vcodec mpeg4 -acodec mpeg4aac -ac 1 -ar 16000 -r 25 output.mp4