Handbrake adds empty tags to MKV containers

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
TockyDocky
New User
Posts: 1
Joined: Tue May 28, 2019 6:55 am

Handbrake adds empty tags to MKV containers

Post by TockyDocky » Tue May 28, 2019 7:12 am

Description of problem or question:

Whenever I encode a file using the MKV container format, Handbrake adds a number of seemingly empty tags to the file. It does not do this if I opt for the MPEG-4 format, perhaps due to limitations of the format.

I would prefer to keep my files as clean as possible, yet I have not found a way to disable the tagging behaviour. MKV Toolnix allows me to remove the tags, yet, needless to say, doing so requires a number of extra clicks, as well as additional writes to my SSD drive.


Steps to reproduce the problem (If Applicable):

Encode any file using the MKV container format. It does not matter whether the h.264 or h.265 codec is used.


HandBrake version (e.g., 1.0.0):
1.2.2



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Kubuntu 19.04.


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

[09:05:42] gtkgui: HandBrake 1.2.2 (2019022400) - Linux x86_64 - https://handbrake.fr
[09:05:42] hb_init: starting libhb thread
[09:05:42] hb_init: starting libhb thread
[09:05:42] hb_init: starting libhb thread
[09:05:55] CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
[09:05:55]  - Intel microarchitecture Haswell
[09:05:55]  - logical processor count: 4
[09:05:55] hb_scan: path=/media/[...]/13 De Huid.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /media/[...]/13 De Huid.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[09:05:55] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
************************************************
**                                            **
**  No css library available. See             **
**  /usr/share/doc/libdvdread4/README.css     **
**  for more information.                     **
**                                            **
************************************************
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[09:05:55] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/[...]/13 De Huid.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2014-02-12T19:41:17.000000Z
  Duration: 00:09:25.01, start: 0.000000, bitrate: 551 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 452 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2014-02-12T19:41:22.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
[09:05:55] scan: decoding previews for title 1
[09:05:55] scan: audio 0x1: aac, rate=44100Hz, bitrate=96001 Unknown (AAC LC) (2.0 ch)
[09:05:55] scan: 10 previews, 480x360, 25,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[09:05:55] libhb: scan thread found 1 valid title(s)
[09:06:00] gtkgui: Modified Preset: /General/Fast 1080p30
[09:06:00] 1 job(s) to process
[09:06:00] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/[...]/Videos/13 De Huid (1).mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 360,
                    "width": 480
                }
            }
        ]
    },
    "Metadata": {
        "Name": "13 De Huid"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/media/[...]/13 De Huid.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 6,
        "ColorPrimaries": 5,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "4.0",
        "Options": "",
        "Preset": "fast",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[09:06:00] CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
[09:06:00]  - Intel microarchitecture Haswell
[09:06:00]  - logical processor count: 4
[09:06:00] hb_scan: path=/media/[...]/13 De Huid.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /media/[...]/13 De Huid.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[09:06:00] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
************************************************
**                                            **
**  No css library available. See             **
**  /usr/share/doc/libdvdread4/README.css     **
**  for more information.                     **
**                                            **
************************************************
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[09:06:00] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/[...]/13 De Huid.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2014-02-12T19:41:17.000000Z
  Duration: 00:09:25.01, start: 0.000000, bitrate: 551 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 452 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2014-02-12T19:41:22.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
[09:06:00] scan: decoding previews for title 1
[09:06:00] scan: audio 0x1: aac, rate=44100Hz, bitrate=96001 Unknown (AAC LC) (2.0 ch)
[09:06:00] scan: 10 previews, 480x360, 25,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[09:06:00] libhb: scan thread found 1 valid title(s)
[09:06:00] starting job
[09:06:00] decomb filter thread started for segment 0
[09:06:00] decomb filter thread started for segment 2
[09:06:00] decomb filter thread started for segment 1
[09:06:00] decomb filter thread started for segment 3
[09:06:00] decomb check thread started for segment 1
[09:06:00] decomb check thread started for segment 0
[09:06:00] mask filter thread started for segment 0
[09:06:00] mask filter thread started for segment 1
[09:06:00] decomb check thread started for segment 3
[09:06:00] mask filter thread started for segment 2
[09:06:00] mask erode thread started for segment 0
[09:06:00] decomb check thread started for segment 2
[09:06:00] mask filter thread started for segment 3
[09:06:00] mask erode thread started for segment 1
[09:06:00] mask erode thread started for segment 2
[09:06:00] mask erode thread started for segment 3
[09:06:00] mask dilate thread started for segment 0
[09:06:00] mask dilate thread started for segment 1
[09:06:00] mask dilate thread started for segment 2
[09:06:00] job configuration:
[09:06:00]  * source
[09:06:00]    + /media/[...]/13 De Huid.mp4
[09:06:00]    + title 1, chapter(s) 1 to 1
[09:06:00]    + container: mov,mp4,m4a,3gp,3g2,mj2
[09:06:00]    + data rate: 551 kbps
[09:06:00]  * destination
[09:06:00]    + /home/[...]/Videos/13 De Huid (1).mkv
[09:06:00]    + container: Matroska (libavformat)
[09:06:00]  * video track
[09:06:00]    + decoder: h264
[09:06:00]      + bitrate 452 kbps
[09:06:00]    + filters
[09:06:00]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[09:06:00]      + Decomb (mode=39)
[09:06:00]      + Framerate Shaper (mode=2:rate=27000000/900000)
[09:06:00]        + frame rate: 25,000 fps -> peak rate limited to 30,000 fps
[09:06:00]      + Crop and Scale (width=480:height=360:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[09:06:00]        + source: 480 * 360, crop (0/0/0/0): 480 * 360, scale: 480 * 360
[09:06:00]    + Output geometry
[09:06:00]      + storage dimensions: 480 x 360
[09:06:00]      + pixel aspect ratio: 1 : 1
[09:06:00]      + display dimensions: 480 x 360
[09:06:00]    + encoder: H.264 (libx264)
[09:06:00]      + preset:  fast
[09:06:00]      + profile: main
[09:06:00]      + level:   4.0
[09:06:00]      + quality: 22,00 (RF)
[09:06:00]      + color profile: 5-1-6
[09:06:00]  * audio track 1
[09:06:00]    + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x1)
[09:06:00]      + bitrate: 96 kbps, samplerate: 44100 Hz
[09:06:00]    + mixdown: Stereo
[09:06:00]    + dither: triangular
[09:06:00]    + encoder: AAC (libavcodec)
[09:06:00]      + bitrate: 160 kbps, samplerate: 44100 Hz
[09:06:00] yadif thread started for segment 2
[09:06:00] yadif thread started for segment 3
[09:06:00] mask dilate thread started for segment 3
[09:06:00] yadif thread started for segment 0
[09:06:00] yadif thread started for segment 1
[09:06:00] sync: expecting 14125 video frames
[09:06:00] encx264: encoding at constant RF 22,000000
[09:06:00] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0
[09:06:00] sync: first pts video is 0
[09:06:00] sync: Chapter 1 at frame 1 time 0
[09:06:00] sync: first pts audio 0x1 is 0
[09:06:50] reader: done. 1 scr changes
[09:06:50] work: average encoding speed for job is 279,716492 fps
[09:06:50] comb detect: heavy 0 | light 10 | uncombed 14115 | total 14125
[09:06:50] decomb: deinterlaced 0 | blended 10 | unfiltered 14115 | total 14125
[09:06:50] vfr: 14125 frames output, 0 dropped and 0 duped for CFR/PFR
[09:06:50] vfr: lost time: 0 (0 frames)
[09:06:50] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:06:50] aac-decoder done: 24333 frames, 0 decoder errors
[09:06:50] h264-decoder done: 14125 frames, 0 decoder errors
[09:06:50] sync: got 14125 frames, 14125 expected
[09:06:50] sync: framerate min 25,000 fps, max 25,000 fps, avg 25,000 fps
x264 [info]: frame I:170   Avg QP:18,72  size: 14896
x264 [info]: frame P:5637  Avg QP:21,68  size:  4132
x264 [info]: frame B:8318  Avg QP:24,70  size:  1185
x264 [info]: consecutive B-frames: 16,7% 11,7%  8,3% 63,4%
x264 [info]: mb I  I16..4: 25,0%  0,0% 75,0%
x264 [info]: mb P  I16..4:  7,4%  0,0%  8,5%  P16..4: 31,4% 15,9%  6,8%  0,0%  0,0%    skip:30,0%
x264 [info]: mb B  I16..4:  1,9%  0,0%  1,6%  B16..8: 26,3%  8,2%  1,1%  direct: 3,7%  skip:57,2%  L0:56,9% L1:38,1% BI: 5,0%
x264 [info]: coded y,uvDC,uvAC intra: 48,1% 61,9% 20,6% inter: 9,6% 12,5% 0,2%
x264 [info]: i16 v,h,dc,p: 35% 38% 17% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 21% 18%  7%  6%  6%  6%  6%  6%
x264 [info]: i8c dc,h,v,p: 50% 24% 20%  7%
x264 [info]: Weighted P-Frames: Y:3,8% UV:1,5%
x264 [info]: ref P L0: 82,0% 18,0%
x264 [info]: ref B L0: 90,3%  9,7%
x264 [info]: ref B L1: 96,7%  3,3%
x264 [info]: kb/s:505,27
[09:06:50] mux: track 0, 14125 frames, 35678807 bytes, 505,15 kbps, fifo 4096
[09:06:50] mux: track 1, 24334 frames, 11336217 bytes, 160,50 kbps, fifo 8192
[09:06:51] libhb: work result = 0


Post Reply