Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How can I do that, without recompressing the file?

share|improve this question
add comment

2 Answers

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.

share|improve this answer
    
I have tried this application, it does not support mkv so well, although it claims it does. –  Starx Jan 24 '11 at 13:37
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.