Skip to content

Attached fonts are incorrectly identified as "Cover" in MKV files #2506

@Bokk0

Description

@Bokk0

if (Description_Lower.find(__T("thumbnail")) != string::npos && Description_Lower.find(__T("c2pa.thumbnail")) == string::npos) {

if (Description_Lower.find(__T("cover")) != string::npos || Description_Lower.find(__T("front")) != string::npos) {

Hi, I encountered an issue where MediaInfo identifies fonts (and other attachments) as covers when analyzing an MKV file.

Using mkvtoolnix, I create a new MKV file and add "FinalFrontier (Regular).TTF" and "v_CCDearDiary_v1.3.TTF" to the attachments (The first one has "front" in its name, the second one has "cd"). mkvtoolnix sets the MIME type flag to "application/x-truetype-font". As a result, I get an .mkv file.

If you open the file in a text editor, there will be strings starting like this:

ып vГА s¤ђтВx/0�Эм�9[)x�й!�A¤i �Нa§ LdFn›FinalFrontier (Regular).TTFF`›application/x-truetype-fontF\ 

F®€&*ќп‹�•Тa§ L_Fn–v_CCDearDiary_v1.3.TTFF`›application/x-truetype-fontF\

I dare to assume that "application/x-truetype-font" in both of these strings indicates that these are TrueType fonts in this MKV file.

Next, I open MediaInfo GUI and load the same file. There I can read that my fonts are... covers?..

It is likely that the same thing will happen with any other files (.txt (text/plain) and others) that contain certain combinations of letters in their names.

General
Unique ID                                : 322682918198261981159589721070056237345 (0xF2C2782F3014DDEC19395B29787FE921)
Complete name                            : D:\Desktop\123.mkv
Format                                   : Matroska
Format version                           : Version 1
File size                                : 42.4 KiB
Encoded date                             : 2026-01-30 18:13:52 UTC
Writing application                      : mkvmerge v97.0 ('You Don't Have A Clue') 64-bit
Writing library                          : libebml v1.4.5 + libmatroska v1.7.1
Cover                                    : Yes / Yes
Cover description                        : FinalFrontier (Regular).TTF / v_CCDearDiary_v1.3.TTF
Cover type                               : Cover / Cover (media)
Attachments                              : FinalFrontier (Regular).TTF / v_CCDearDiary_v1.3.TTF

Image #1
Type                                     : Cover
Title                                    : FinalFrontier (Regular).TTF
Muxing mode                              : Attachment
Stream size                              : 19.0 KiB (45%)

Image #2
Type                                     : Cover (media)
Title                                    : v_CCDearDiary_v1.3.TTF
Muxing mode                              : Attachment
Stream size                              : 19.0 KiB (45%)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions