

Right click and "Open in Powershell" and it will do its thing.

Save it as mkv2mp4.ps1 and drop it in the folder you're working with. Start-process $processName $processArgs -wait Just create a file convert.sh: #!/bin/bashįind /path/to/input/folder -iname '*.mkv' -print0 | while read -d '' -r file doįfmpeg -i "$file" -c:v copy -c:a copy $ vlc://quit"

This batch won't, however, copy subtitles. Loop over the files as needed and available by your operating system. This will create a valid MP4 container without re-encoding. Then, just call: ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 Use the most compatible files to play on your entertainment devices, share to web, and more - NEW Embed external subtitles into your video - NEW Support multiple audio tracks selection and conversion - Convert your MKV file to the format which compatible to entertainment devices, iPad, PSP, Android devices, etc. If mkvtomp4 does not work for you, a simple FFmpeg batch file could also do. This will not copy your subtitles though. On OS X, you only need to brew install mkvtoolnix mp4box if you have Homebrew. You will need additional software though.Ĭheck the sites for downloads for either Windows or Linux. You can download Windows and Linux versions on the Google Code page. The conversion does not re-encode the video and only re-encodes the audio if it doesn't use AAC codec (one can override this behaviour using -audio-codec). Uses mpeg4ip or GPAC's MP4Box, mkvtoolnix and ffmpeg to convert troublesome mkv files to mp4.
