Damion Brown's Blog

D97A 07F3 DCB1 302D

Converting MKV to MP4 with Windows Subsystem for Linux and FFMPEG


  • Sat 01 July 2017
  • Tech

Had the often need to convert MKV to MP4, found this pretty cool method taking advantage of WSL and FFMPEG.

Pretty simply:

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

And then you create a windows shortcut in the current directory, like this:

image0

And change the "Start In" field to reflect your target directory.

image1

You could install FFMPEG natively on windows to achieve the same end if you wanted.