Convert mkv to avi with mencoder

Command to convert mkv file to avi with mencoder in linux:

mencoder input.mkv -ffourcc divx -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=400 -oac mp3lame -lameopts vbr=3 -o output.avi