How to split a file and ONLY keep the part I want?

Every time I use the split mode, whether it’s specific timestamps or after output duration, it keeps saving part of the file that I’ve cut out.

Example of “specific timestamps”: if I select a 10-minute video and choose to split between 00:03:00,00:07:00 - meaning I want to keep the 4 minutes between the 3-minute and 7-minute mark, it will create 3 files. The first 3 minutes, the 4 minutes, I want, and the rest of the video.

I don’t want that. I only want it to generate the 4 minutes I want.

It also won’t allow you to set “maximum number of files” to 1, defaults straight back to "unlimited. And if I set that number to 2, it will generate 2 files. The first 3 minutes of the video, and the rest of it.

Welcome!

You can use the “split by parts” mode for this. Please see the documentation for details & examples.

1 Like

OdXi85y1

:ok_hand::ok_hand::ok_hand:

unfortunately I spoke too soon. that didn’t work for me at all.

first I tried “after specific timestamps” - max number of files: unlimited

then I tried “by parts based on timestamps” - max number of files: unlimited

I want to keep the first 10 minutes of a video and I used

–split parts:00:00:00,00:10:00

and it kept giving me an error.

Please read the documentation I’ve linked to. It includes examples.

I did, I copied the codes directly from the page

Examples:

  1. –split parts:00:01:20-00:02:45,00:05:50-00:10:30
  2. –split parts:00:01:20-00:02:45,+00:05:50-00:10:30
  3. –split parts:-00:02:45,00:05:50-

“In example 2 mkvmerge(1) will create only one file. This file will contain both the content starting from 00:01:20 until 00:02:45 and the content starting from 00:05:50 until 00:10:30.”

I select Split Mode: parts based on timestamps, I want to keep the first 10 minutes

–split parts:00:00:00,00:10:00

and keeps erroring.

------------------------------------------------------------------------------------------------------------

and then I realized I was too used to using a comma between timestamps, instead of a - that I needed to use.

The correct code is

–split parts:00:00:00-00:10:00

not

–split parts:00:00:00,00:10:00

a - instead of ,