Convert MKV video to MP4 via Terminal

Converting MKV video is super fast via terminal. This can be done on Linux or Mac.

Install ffmpeg

sudo apt-get install ffmpeg
sudo brew install ffmpeg


To convert video.mkv to video.mp4 use the command below:

ffmpeg -i video.mkv -vcodec copy -acodec copy video.mp4

This 183MB file took less than 20 seconds to convert.screen-shot-2016-09-22-at-22-13-42

This 183MB file took less than 20 seconds to convert.

Tip: To convert all the mkv files in current directory, run a simple loop in terminal:

for i in *mkv; do ffmpeg -i $i -vcodec copy -acodec copy $i.mp4; done

Why it feels awesome to know Linux and Code

This is a video that will motivate more and more youngsters to learn code and computers. This simple SSH ‘hack’ video (probably scripted but well played!) is definitely worth a watch. Go get your Raspberry Pi’s / VirtualBox/ VMware and get cracking!