Split mkv file with mkvtoolnix command line

albttx picture albttx · May 24, 2016 · Viewed 10k times · Source

I found mkvtoolnix command line, installed with brew. But i found nothing about splitting a movie with the command line, i only found with GUI.

The installation create 4 binary mkvextract mkvinfo mkvmerge mkvpropedit .

SOLUTION :

mkvmerge --split 3G -o "film.mkv" ./mymkvfile

Answer

urbanhusky picture urbanhusky · May 24, 2016

Either use the command line mkvmergewith --split (see https://mkvtoolnix.download/doc/mkvmerge.html) or use the GUI on the "Global" tab ("Splitting").

For example, to split the file movie.mkv into 1.5GB chunks:

mkvmerge --split 1500M -o movie-split.mkv movie.mkv

Note that fractional split sizes aren't supported, so --split 1.5G won't work.