Here is a simple command which allows conversion of AVI format to MP4 format by MEncoder.
mencoder input.avi -o output.mp4 -oac copy -ovc lavc -lavcopts vcodec=mpeg1video -of mpeg
The conversion is useful e.g. for Smart TV like Samsung which are often not able to play AVI.