{"id":43,"date":"2022-03-19T20:48:18","date_gmt":"2022-03-20T00:48:18","guid":{"rendered":"http:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=43"},"modified":"2024-10-11T09:37:23","modified_gmt":"2024-10-11T13:37:23","slug":"extract-subtitles-from-mkv","status":"publish","type":"post","link":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=43","title":{"rendered":"extract subtitles from mkv"},"content":{"rendered":"\n<p>Download mkvtoolnix from:<\/p>\n\n\n\n<p><a href=\"https:\/\/mkvtoolnix.download\/downloads.html\">https:\/\/mkvtoolnix.download\/downloads.html<\/a><\/p>\n\n\n\n<p id=\"ext-gen2317\">You can use mkvmerge (from mkvtoolnix) to&nbsp;inspect the file to see what the ID of the subtitles data will be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkvmerge -i input.mkv\n<\/code><\/pre>\n\n\n\n<p>This will list the tracks, for example like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>File 'input.mkv': container: Matroska\nTrack ID 1: video (V_MPEG4\/ISO\/AVC)\nTrack ID 2: audio (A_AAC)\nTrack ID 3: subtitles (S_TEXT\/UTF8)\n<\/code><\/pre>\n\n\n\n<p>Based on the ID of the track, call the following command, where is the one you identified above. You can use any srt filename that you want.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkvextract tracks input.mkv :.srt\n<\/code><\/pre>\n\n\n\n<p>So, in our case, that would have been:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkvextract tracks input.mkv 3:subs.srt\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Download mkvtoolnix from: https:\/\/mkvtoolnix.download\/downloads.html You can use mkvmerge (from mkvtoolnix) to&nbsp;inspect the file to see what the ID of the subtitles data will be: This will list the tracks, for example like this: Based on the ID of the track, call the following command, where is the one you identified above. You can use any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-multimedia"],"_links":{"self":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":2,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}