use

http://askubuntu.com/questions/50433/how-to-convert-mkv-file-into-mp4-file-losslessly