User Tools

Site Tools


howto:subtitles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howto:subtitles [2025/07/09 16:31] Wulf Rajekhowto:subtitles [2025/07/26 18:41] (current) Wulf Rajek
Line 58: Line 58:
  
 For mkv files, this probably needs to be srt instead of mov_text. For mkv files, this probably needs to be srt instead of mov_text.
 +
 +===== Remove subtitles from mkv files =====
 +
 +First, identify the track ids contained in the mkv file:
 +<code>
 +mkvmerge -i videofile.mkv
 +</code>
 +The output will look something like this:
 +<code>
 +kax i am at 6718
 +File 'videofile.mkv': container: Matroska
 +Track ID 0: audio (AC3/EAC3)
 +Track ID 1: subtitles (SubRip/SRT)
 +Track ID 2: subtitles (SubRip/SRT)
 +Track ID 3: video (MPEG-4p10/AVC/h.264)
 +Track ID 4: audio (DTS)
 +Chapters: 17 entries
 +Tags for track ID 0: 7 entries
 +Tags for track ID 1: 7 entries
 +Tags for track ID 2: 7 entries
 +Tags for track ID 3: 7 entries
 +Tags for track ID 4: 7 entries
 +</code>
 +
 +For more detailed information the mkvinfo command can be used:
 +<code>
 +mkvinfo videofile.mkv
 +</code>
 +
 +To create a new mkv file with the subtitles removed and only keeping the second audio stream, use the following command:
 +<code>
 +mkvmerge -o newvideofile.mkv -a 4 -s 0 videofile.mkv
 +</code>
 +
 +To extract tracks from an mkv file, use the mkvextract command using the IDs obtained from mkvinfo:
 +<code>
 +mkvextract tracks videofile.mkv 2:subtitletrack2.srt 3:subtitletrack3.srt
 +</code>
  
howto/subtitles.txt · Last modified: by Wulf Rajek