Skip to content

Track loss may occur when reading MKV files #691

Description

@oran-grove

Hello, Nevcairiel and all LAV Filters developers!
I discovered that LAV Splitter may lose some tracks that are not set to disabled, but appear to be discarded simply because their ID exceeds 64.

Video information is as follows:

General
Unique ID                                : 328215204015699440916236645659091402837 (0xF6EBF2EF276B3657F14F0BDBE7980055)
Complete name                            : Cosmic.Princess.Kaguya.2026.1080p.NF.WEB-DL.MULTi.DDP5.1.H.264-VARYG.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 12.5 GiB
Duration                                 : 2 h 22 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 12.6 Mb/s
Frame rate                               : 23.976 FPS
Writing application                      : mkvmerge 96.0 ('It's My Life') 64-bit
Writing library                          : libebml v1.4.5 + libmatroska v1.7.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings                          : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 3 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2 h 22 min
Bit rate mode                            : Variable
Bit rate                                 : 5 000 kb/s
Maximum bit rate                         : 7 500 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.101
Stream size                              : 4.90 GiB (39%)
Writing library                          : x264 core 148 r2746 95846cf
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=2 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=121 / scenecut=0 / intra_refresh=0 / rc_lookahead=48 / rc=2pass / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.50 / qpmin=6 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=7500 / vbv_bufsize=10000 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 2 h 22 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 650 MiB (5%)
Language                                 : Japanese
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Dialog Normalization                     : -25 dB
compr                                    : -0.28 dB
dialnorm_Average                         : -25 dB
dialnorm_Minimum                         : -25 dB
dialnorm_Maximum                         : -25 dB

...

Audio #12
ID                                       : 13
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 2 h 22 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 650 MiB (5%)
Language                                 : Thai
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No
Dialog Normalization                     : -24 dB
compr                                    : -0.28 dB
dialnorm_Average                         : -24 dB
dialnorm_Minimum                         : -24 dB
dialnorm_Maximum                         : -24 dB

Text #1
ID                                       : 14
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 9 min
Bit rate                                 : 3 b/s
Frame rate                               : 0.012 FPS
Count of elements                        : 95
Stream size                              : 3.23 KiB (0%)
Title                                    : Forced
Language                                 : English
Default                                  : No
Forced                                   : Yes

...

Text #51
ID                                       : 64
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 20 min
Bit rate                                 : 164 b/s
Frame rate                               : 0.250 FPS
Count of elements                        : 2104
Stream size                              : 169 KiB (0%)
Language                                 : Thai
Default                                  : No
Forced                                   : No

Text #52
ID                                       : 65
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 20 min
Bit rate                                 : 70 b/s
Frame rate                               : 0.248 FPS
Count of elements                        : 2087
Stream size                              : 72.7 KiB (0%)
Language                                 : Turkish
Default                                  : No
Forced                                   : No

Text #53
ID                                       : 66
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 20 min
Bit rate                                 : 106 b/s
Frame rate                               : 0.244 FPS
Count of elements                        : 2051
Stream size                              : 110 KiB (0%)
Language                                 : Ukrainian
Default                                  : No
Forced                                   : No

Text #54
ID                                       : 67
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 20 min
Bit rate                                 : 90 b/s
Frame rate                               : 0.249 FPS
Count of elements                        : 2097
Stream size                              : 93.2 KiB (0%)
Language                                 : Vietnamese
Default                                  : No
Forced                                   : No

Text #55
ID                                       : 68
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 20 min
Bit rate                                 : 65 b/s
Frame rate                               : 0.250 FPS
Count of elements                        : 2102
Stream size                              : 67.1 KiB (0%)
Title                                    : Simplified
Language                                 : Chinese (Simplified)
Default                                  : No
Forced                                   : No

Text #56
ID                                       : 69
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 20 min
Bit rate                                 : 61 b/s
Frame rate                               : 0.249 FPS
Count of elements                        : 2098
Stream size                              : 63.0 KiB (0%)
Title                                    : Traditional
Language                                 : Chinese (Traditional)
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:Scene 1
02:22:37.450                             : en:Credits

File header information: (no tracks disabled #608 )

Image

The last five tracks of the video were discarded, leaving me unable to find the subtitles I wanted.
Is this because the upper limit of 64 was used somewhere when LAV Splitter was written? If so, can you please fix it?
Additionally, if you need me to provide more information, please let me know. I'm not sure if the information I've provided is sufficient.

PS: I'm not sure if my expression is sufficiently appropriate and accurate, as English is not my native language. I used a translator while completing this issue. If there are any errors, I sincerely apologize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions