MKV output not copying over language subtags
Author: heliosyneCreated Oct 11, 2022Updated Sep 12, 2026
LabelsEnhancement
Problem Description
I'm doing an MKV->MKV transcode with all audio tracks passed through. The source files use ISO 639-1 tags with ISO 3166-1 or UN M49 subtags to differentiate dialects such as Mexican, Latin American, and Castillian Spanish (es-mx, es-419, and es-es, respectively). Handbrake is dropping the subtag, so all three would be tagged "es". Attached are images from the MKVtoolnix GUI header editor showing a source file and Handbrake's output.

Activity Log, Crash Log or any other details
Activity log for the file shown in the image:
HandBrake 1.5.1 (2022011000)
OS: Microsoft Windows NT 10.0.19044.0
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Ram: 16289 MB,
GPU Information:
NVIDIA GeForce GTX 1650 SUPER - 30.0.15.1215
Intel(R) HD Graphics 4600 - 20.19.15.4835
Screen: 1920x1200
Temp Dir: C:\Users\Melissa\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Melissa\AppData\Roaming\HandBrake
-------------------------------------------
# Starting Encode ...
[20:55:07] base preset: StreamCap HD MKV
[20:55:07] Remote Process started with Process ID: 1824 using port: 8037. Max Allowed Instances: 2
[20:55:07] Worker: Starting HandBrake Engine ...
[20:55:07] Worker: Starting Web Server on port 8037 ...
[20:55:07] Worker: Disconnected worker monitoring enabled!
[20:55:07] Compile-time hardening features are enabled
hb thread
[20:55:08] Starting work at: Mon Oct 10 20:55:08 2022
[20:55:08] 1 job(s) to process
[20:55:08] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0,
"Encoder": "copy:eac3",
"Gain": 0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Track": 0,
"DitherMethod": 0
},
{
"DRC": 0,
"Encoder": "copy:aac",
"Gain": 0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Name": "Video description",
"Track": 1,
"DitherMethod": 0
},
{
"DRC": 0,
"Encoder": "copy:eac3",
"Gain": 0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Name": "Espa\u00F1ol (Latinoam\u00E9rica)",
"Track": 2,
"DitherMethod": 0
},
{
"DRC": 0,
"Encoder": "copy:eac3",
"Gain": 0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 48000,
"Name": "Fran\u00E7ais (Canada)",
"Track": 3,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd",
"copy:mp2"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "D:\\ripping\\handbrake_o\\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "av_mkv"
},
"Filters": {
"FilterList": [
{
"ID": 13,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "800",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "frame",
"Start": 137,
"End": 94728
},
"Title": 1,
"Path": "Q:\\0_working\\mkvmerge\\rop\\s1\\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "nvenc_h265",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "slowest",
"Profile": "main",
"Quality": 20,
"QSV": {
"Decode": false
}
}
}
[20:55:08] CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
[20:55:08] - Intel microarchitecture Haswell
[20:55:08] - logical processor count: 8
[20:55:08] Intel Quick Sync Video support: yes, gpu list: 1
[20:55:08] Intel Quick Sync Video integrated adapter with index 1
[20:55:08] - Intel Media SDK hardware: API 1.20 (minimum: 1.3)
[20:55:08] - Decode support: h264
[20:55:08] - H.264 encoder: yes
[20:55:08] - preferred implementation: hardware (2) via D3D11
[20:55:08] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[20:55:08] - H.265 encoder: no
[20:55:08] hb_scan: path=Q:\0_working\mkvmerge\rop\s1\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image Q:\0_working\mkvmerge\rop\s1\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(Q:\0_working\mkvmerge\rop\s1\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv\) failed
[20:55:08] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
read: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[20:55:08] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Q:\0_working\mkvmerge\rop\s1\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv':
Metadata:
encoder : libebml v1.4.4 + libmatroska v1.7.1
creation_time : 2022-10-11T03:42:47.000000Z
Duration: 01:05:47.33, start: 0.000000, bitrate: 7257 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
Metadata:
BPS : 5271066
DURATION : 01:05:47.250000000
NUMBER_OF_FRAMES: 94734
NUMBER_OF_BYTES : 2600776911
_STATISTICS_WRITING_APP: mkvmerge v71.1.0 ('Fortitude') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-10-11 03:42:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Metadata:
BPS : 640000
DURATION : 01:05:47.264000000
NUMBER_OF_FRAMES: 123352
NUMBER_OF_BYTES : 315781120
_STATISTICS_WRITING_APP: mkvmerge v71.1.0 ('Fortitude') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-10-11 03:42:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (visual impaired)
Metadata:
title : Video description
BPS : 64000
DURATION : 01:05:47.264000000
NUMBER_OF_FRAMES: 92514
NUMBER_OF_BYTES : 31578112
_STATISTICS_WRITING_APP: mkvmerge v71.1.0 ('Fortitude') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-10-11 03:42:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(spa): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : EspaAñol (LatinoamAcrica)
BPS : 640000
DURATION : 01:05:47.328000000
NUMBER_OF_FRAMES: 123354
NUMBER_OF_BYTES : 315786240
_STATISTICS_WRITING_APP: mkvmerge v71.1.0 ('Fortitude') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-10-11 03:42:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(fre): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : FranAais (Canada)
BPS : 640000
DURATION : 01:05:47.328000000
NUMBER_OF_FRAMES: 123354
NUMBER_OF_BYTES : 315786240
_STATISTICS_WRITING_APP: mkvmerge v71.1.0 ('Fortitude') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-10-11 03:42:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[20:55:08] scan: decoding previews for title 1
[20:55:08] scan: audio 0x1: eac3, rate=48000Hz, bitrate=640000 English (E-AC3) (5.1 ch) (640 kbps)
[20:55:08] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 English (HE-AAC) (2.0 ch)
[20:55:08] scan: audio 0x3: eac3, rate=48000Hz, bitrate=640000 espaol (E-AC3) (5.1 ch) (640 kbps)
[20:55:08] scan: audio 0x4: eac3, rate=48000Hz, bitrate=640000 Francais (E-AC3) (5.1 ch) (640 kbps)
[20:55:08] scan: 10 previews, 1920x800, 24.000 fps, autocrop = 0/0/0/0, aspect 2.40:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[20:55:08] scan: supported video decoders: avcodec qsv
[20:55:08] libhb: scan thread found 1 valid title(s)
[20:55:08] Starting Task: Encoding Pass
[20:55:08] Skipping crop/scale filter
[20:55:08] work: only 1 chapter, disabling chapter markers
[20:55:08] job configuration:
[20:55:08] * source
[20:55:08] + Q:\0_working\mkvmerge\rop\s1\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv
[20:55:08] + title 1, frames 136 to 94727
[20:55:08] + container: matroska,webm
[20:55:08] + data rate: 7257 kbps
[20:55:08] * destination
[20:55:08] + D:\ripping\handbrake_o\The Lord of the Rings- The Rings of Power s01e01 A Shadow of the Past.mkv
[20:55:08] + container: Matroska (libavformat)
[20:55:08] * video track
[20:55:08] + decoder: h264 8-bit (yuv420p)
[20:55:08] + filter
[20:55:08] + Framerate Shaper (mode=1)
[20:55:08] + frame rate: 24.000 fps -> constant 24.000 fps
[20:55:08] + Output geometry
[20:55:08] + storage dimensions: 1920 x 800
[20:55:08] + pixel aspect ratio: 1 : 1
[20:55:08] + display dimensions: 1920 x 800
[20:55:08] + encoder: H.265 (NVEnc)
[20:55:08] + preset: slowest
[20:55:08] + profile: main
[20:55:08] + level: auto
[20:55:08] + quality: 20.00 (CQ)
[20:55:08] + color profile: 1-1-1
[20:55:08] + chroma location: left
[20:55:08] * audio track 1
[20:55:08] + decoder: English (E-AC3) (5.1 ch) (640 kbps) (track 1, id 0x1)
[20:55:08] + bitrate: 640 kbps, samplerate: 48000 Hz
[20:55:08] + E-AC3 Passthru
[20:55:08] * audio track 2
[20:55:08] + name: Video description
[20:55:08] + decoder: English (HE-AAC) (2.0 ch) (track 2, id 0x2)
[20:55:08] + samplerate: 48000 Hz
[20:55:08] + AAC Passthru
[20:55:08] * audio track 3
[20:55:08] + name: Espaol (Latinoam,rica)
[20:55:08] + decoder: espaol (E-AC3) (5.1 ch) (640 kbps) (track 3, id 0x3)
[20:55:08] + bitrate: 640 kbps, samplerate: 48000 Hz
[20:55:08] + E-AC3 Passthru
[20:55:08] * audio track 4
[20:55:08] + name: FranØais (Canada)
[20:55:08] + decoder: Francais (E-AC3) (5.1 ch) (640 kbps) (track 4, id 0x4)
[20:55:08] + bitrate: 640 kbps, samplerate: 48000 Hz
[20:55:08] + E-AC3 Passthru
[20:55:08] sync: expecting 94592 video frames
[20:55:08] encavcodecInit: H.265 (Nvidia NVENC)
[20:55:08] encavcodec: encoding at rc=vbr, multipass=fullres, 20.00
[20:55:08] encavcodec: encoding with stored aspect 1/1
[20:55:09] sync: first pts video is 0
[20:55:09] sync: first pts audio 0x2 is 720
[20:55:09] sync: first pts audio 0x1 is 2640
[20:55:09] sync: first pts audio 0x3 is 2640
[20:55:09] sync: first pts audio 0x4 is 2640
[21:13:07] reader: done. 1 scr changes
[21:13:07] sync: reached video frame 94592, exiting early
[21:13:07] sync: reached audio 0x1 pts 354720720, exiting early
[21:13:07] sync: reached audio 0x2 pts 354720720, exiting early
[21:13:07] sync: reached audio 0x3 pts 354720720, exiting early
[21:13:07] sync: reached audio 0x4 pts 354720720, exiting early
[21:13:08] work: average encoding speed for job is 87.727020 fps
[21:13:08] vfr: 94592 frames output, 0 dropped and 0 duped for CFR/PFR
[21:13:08] vfr: lost time: 0 (0 frames)
[21:13:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:13:08] eac3-decoder done: 123352 frames, 0 decoder errors
[21:13:08] aac-decoder done: 92514 frames, 0 decoder errors
[21:13:08] eac3-decoder done: 123354 frames, 0 decoder errors
[21:13:08] eac3-decoder done: 123354 frames, 0 decoder errors
[21:13:08] h264-decoder done: 94734 frames, 0 decoder errors
[21:13:08] sync: got 94592 frames, 94592 expected
[21:13:08] sync: framerate min 24.000 fps, max 24.000 fps, avg 24.000 fps
[21:13:08] mux: track 0, 94592 frames, 2773849973 bytes, 5630.22 kbps, fifo 1024
[21:13:08] mux: track 1, 123166 frames, 315304960 bytes, 639.99 kbps, fifo 2048
[21:13:08] mux: track 2, 92375 frames, 31530445 bytes, 64.00 kbps, fifo 1024
[21:13:08] mux: track 3, 123166 frames, 315304960 bytes, 639.99 kbps, fifo 2048
[21:13:08] mux: track 4, 123166 frames, 315304960 bytes, 639.99 kbps, fifo 2048
[21:13:08] Finished work at: Mon Oct 10 21:13:08 2022
[21:13:08] libhb: work result = 0
# Job Completed!
[20:55:08] hb_init: starting libWhat Operating System are you running?
Windows 10
What version of HandBrake are you running?
1.5.1
Where did you download HandBrake from?
github
Source: HandBrake/HandBrake