I have an mkv file which has (soft) subtitles in it. The video is about 30 minutes long but I want to trim it down to just 6 minutes (say, from 19:00 to 25:00). However, I want to keep the soft subtitles.

I tried using Record in VLC but even with the subs showing, they were not captured in the output.

Then I tried Avidemux but, again, the output is missing subs.

I thought this answer might help (using mkvextract) but the extracted subs were the entire subs and now I'm not sure how to edit it down and re-add them and sync them to the trimmed video file.

I might be naive here but I would think there would be an option to trim the video keeping the soft subs.

My first preference is to do just this: Cut the video down while keeping the soft subs.

Converting the subs to hard subs is an option but less than ideal because the subs will overlap some important information on screen.

2 Answers 2


Try using ffmpeg:

ffmpeg -i inputfile.mkv -c copy -ss 00:19:00 -t 00:06:00 -async 1 outputfile.mkv


  • The -c copy flag (short for -codec copy) will make all codec operations copy i.e. video, audio, subtitles, data and attachments, if any. This will reduce the time needed to trim the video massively.
  • The -ss flag is the start time offset - if you want the video to start from 19:00, you should set it to 00:19:00
  • The -t flag is the duration - if you want the video to start from 19:00 and end at 25:00, that makes 6 minutes - 00:06:00

In my testing, the soft subtitles were preserved.

Original video
Trimmed video

  • This will reencode audio and video. To just trim a video, you should not transcode. If you do not transcode, full video and audio quality are preserved, and the transmuxing proceeds very fast.
    – vanadium
    Commented Dec 31, 2020 at 9:17
  • You're right, I've added that to the answer. Thanks!
    – neoney
    Commented Dec 31, 2020 at 16:19
  • 1
    Thanks for your answer. It did the job exactly as I hoped and it was very fast.
    – John
    Commented Jan 1, 2021 at 2:23

Lately I've extended VideoCut to support subtitles:

It cut out parts you don't like and supports subtitles in containers that support them as well. Based on the ffmpeg library it will not reencode the parts, so no quality loss.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .