Just a simple case
<code>
avconv -i input_file.mkv -c:v libx264 -c:a copy output_file.mp4
</code>