7

I'd like to cut out clips from an .mkv video.

How can I do that, without recompressing the file?

slhck
  • 223,558
  • 70
  • 607
  • 592
Starx
  • 2,271
  • 5
  • 30
  • 37
  • related: [Lossless cutting of MPEG TS files in Windows](https://superuser.com/q/383161/241386) – phuclv Aug 01 '18 at 16:29

3 Answers3

3

FFmpeg supports MKV, and should let you capture a given portion of the input file without transcoding.

Remember that MKV is just a container, so you may need to set the output video and audio codecs to match the input.

For example, to cut out 20 seconds starting from 1:50 minutes, use:

ffmpeg -i input.mkv -ss 00:01:50 -c copy -t 20 output.mkv

The -ss option can be placed in front of -i, resulting in faster copying but less accuracy. If you experience out-of-sync audio or video, you're going to have to re-encode the file though:

ffmpeg -i input.mkv -ss 00:01:50 -c:v libx264 -c:a libfaac -t 20 output.mkv
slhck
  • 223,558
  • 70
  • 607
  • 592
Nick C
  • 261
  • 4
  • 10
1

Boilsoft's MKV splitter is what you need

Boilsoft Video Splitter is very powerful MKV Splitter and MKV Cutter, split MKV, cut MKV without re-encode, So It is very fast and without any quality loss.

Sathyajith Bhat
  • 61,504
  • 38
  • 179
  • 264
  • 2
    I have tried this application, it does not support mkv so well, although it claims it does. – Starx Jan 24 '11 at 13:37
0

Try this tool called MVK Cutter. You can download it here. Basically you can open a MKV file and start cutting unwanted parts.

G. L.
  • 153
  • 14
  • Welcome to Super User. Please read [How to Recommend Software](https://meta.superuser.com/a/5330/213131) then [edit] your answer to include at least the minimum required information (the items in **bold**). Posts without this information may be subject to deletion. Thanks for contributing. – I say Reinstate Monica Jan 07 '19 at 13:48