Can MKV Files Have Hardcoded and Softcoded Subtitles?

Yes, an MKV (Matroska) video file can simultaneously contain both hardcoded and softcoded subtitles. This article explains how this coexistence works, the structural differences between these two subtitle formats within an MKV container, and how media players handle them during playback.

How Hardcoded and Softcoded Subtitles Coexist

To understand how an MKV file can hold both types of subtitles, it helps to understand how they are stored.

Because hardcoded subtitles are embedded into the video stream itself, the MKV container treats them simply as video. It does not recognize them as subtitle data. Therefore, you can easily mux (combine) one or more softcoded subtitle tracks into the same MKV file alongside that video stream.

Playback Behavior and Overlapping

When you play an MKV file containing both types of subtitles, the media player handles them in specific ways:

If both are active in the same language, they will overlay each other, often resulting in unreadable, overlapping text. However, if they are in different languages or serve different purposes, this setup can be highly functional.

Practical Use Cases

Having both subtitle types in a single MKV file is common in several scenarios: