Log in

View Full Version : Cut mkv file


joeapple
15th January 2008, 04:58
Hey all,Is there a way to cut the first ~1 minute of a .mkv file to a new file with a command line utility? Thanks

pc_speak
15th January 2008, 07:08
You can try this.
Install mkvtoolnix-unicode-2.1.0-setup.exe

"C:\VidAud\MKVtoolnix\mkvmerge" -o "newfile.mkv" --split-max-files 2 --split 00:01:00 "myfile.mkv"

joeapple
17th January 2008, 18:07
Thanks for the reply :) It worked like a charm

bond
19th January 2008, 11:21
no container discussions in the avc forum! moved

GasKid
20th January 2008, 07:05
What if I want to split out 1 minute in the middle of the file?
Splitting with mkvmerge will result in 3 files, but I want some program to generate only the part I want.
Any suggestion please?

mitsubishi
21st January 2008, 17:08
I don't think there are any current tools which take just the piece you want rather than splitting the whole file, avimuxgui is the same.

Anyway with mkvmerge:

mkvmerge" -o "filename.mkv" --split timecodes:55:00,01:05:00 "filename.mkv"

will split 0-55 mins , 55 mins - 1 hour 5 mins and 1h5m to the end. Just seperate the times with a comma. -001, -002, -003 will be added automatically.

pc_speak
21st January 2008, 17:21
Aaaah. So simple. Thanks.

joseph5
22nd January 2008, 20:14
I don't think there are any current tools which take just the piece you want rather than splitting the whole fileI believe AviDemux can.