Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split mkv file with mkvtoolnix command line

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

like image 266
albttx Avatar asked May 24 '16 13:05

albttx


1 Answers

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.

like image 186
urbanhusky Avatar answered Oct 23 '22 20:10

urbanhusky