[MPlayer-users] MKV demuxing problems on some files with lavf

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Fri Dec 31 01:35:04 CET 2010


Hello everybody.


I'm curious why current version mplayer uses problematic lavf demuxer
for .mkv files. Because, for example, when watching some anime fansubs
that contain fonts in .mkv (lots of .ttf files embedded) mplayer can't
load them, printing message "Too many streams" and then resulting in
flood of messages like

"[ass] fontconfig: Selected font is not the requested one: 'DejaVu Sans Bold' != 'Myriad Pro'"

and usage of incorrect fonts.

That is, unless -demuxer mkv is used which works flawlessly and always
renders file with correct fonts.

Looking at code, lavf demuxer doesn't support more than 20 streams in
.mkv files, which isn't enough for some files containing lots of audio
tracks/chapters/subtiles/fonts.

Since "mkv" demuxer is free from this limitation, maybe mplayer should
use it by default so there are less strange problems around?..



An example of problem, with -demuxer lavf I get
---
[file] File size is 636736336 bytes
STREAM: [file] [Coalgirls]_The_Melancholy_of_Haruhi_Suzumiya_-_The_Melancholy_of_Haruhi_Suzumiya_I_(1280x720_Blu-Ray_FLAC)_[2430458D].mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:1677721  eof:0  
Заполнение кэша:  0.00% (0 байт(а))   

LAVF_check: Matroska/WebM file format
Обнаружен libavformat формат файла!
[matroska,webm @ 0x1f69840] Unknown entry 0x6E67
[matroska,webm @ 0x1f69840] Unknown entry 0x6E67
[matroska,webm @ 0x1f69840] Too many streams
[matroska,webm @ 0x1f69840] Estimating duration from bitrate, this may be inaccurate
==> Нашёл видеопоток: 0
======= VIDEO Format ======
  biSize 82
  biWidth 1280
  biHeight 720
  biPlanes 0
  biBitCount 0
  biCompression 875967048='H264'
  biSizeImage 0
Unknown extra header dump: [1] [64] [0] [32] [ff] [e1] [0] [18] [67] [64] [0] [32] [ac] [72] [4] [40] [50] [5] [ba] [10] [0] [0] [3e] [90] [0] [b] [b8] [8] [f1] [83] [18] [46] [1] [0] [7] [68] [e8] [43] [82] [b2] [c8] [b0] 
===========================
[lavf] stream 0: video (h264), -vid 0, The Melancholy of Haruhi Suzumiya - The Melancholy of Haruhi Suzumiya I
==> Нашёл аудиопоток: 1
======= WAVE Format =======
Format Tag: 61868 (0xF1AC)
Channels: 2
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 0
cbSize: 154
Unknown extra header dump: [66] [4c] [61] [43] [0] [0] [0] [22] [10] [0] [10] [0] [0] [0] [e] [0] [32] [a1] [b] [b8] [2] [f0] [3] [cc] [b6] [64] [d9] [30] [75] [8d] [e9] [d0] [87] [9c] [fd] [a9] [3d] [e6] [c7] [2] [d] [d1] [84] [0] [0] [6c] [20] [0] [0] [0] [72] [65] [66] [65] [72] [65] [6e] [63] [65] [20] [6c] [69] [62] [46] [4c] [41] [43] [20] [31] [2e] [32] [2e] [31] [20] [32] [30] [30] [37] [30] [39] [31] [37] [3] [0] [0] [0] [25] [0] [0] [0] [57] [41] [56] [45] [46] [4f] [52] [4d] [41] [54] [45] [58] [54] [45] [4e] [53] [49] [42] [4c] [45] [5f] [43] [48] [41] [4e] [4e] [45] [4c] [5f] [4d] [41] [53] [4b] [3d] [30] [58] [30] [d] [0] [0] [0] [56] [41] [4c] [49] [44] [5f] [42] [49] [54] [53] [3d] [31] [36] [6] [0] [0] [0] [48] [44] [43] [44] [3d] [30] 
==========================================================================
[lavf] stream 1: audio (flac), -aid 0, -alang jpn, 2.0 FLAC
==> Нашёл аудиопоток: 2
======= WAVE Format =======
Format Tag: 61868 (0xF1AC)
Channels: 2
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 0
cbSize: 154
Unknown extra header dump: [66] [4c] [61] [43] [0] [0] [0] [22] [10] [0] [10] [0] [0] [0] [e] [0] [31] [ef] [b] [b8] [2] [f0] [3] [cc] [b6] [64] [2f] [8] [da] [bd] [7b] [17] [12] [7e] [f2] [d3] [b6] [6e] [a2] [54] [66] [31] [84] [0] [0] [6c] [20] [0] [0] [0] [72] [65] [66] [65] [72] [65] [6e] [63] [65] [20] [6c] [69] [62] [46] [4c] [41] [43] [20] [31] [2e] [32] [2e] [31] [20] [32] [30] [30] [37] [30] [39] [31] [37] [3] [0] [0] [0] [25] [0] [0] [0] [57] [41] [56] [45] [46] [4f] [52] [4d] [41] [54] [45] [58] [54] [45] [4e] [53] [49] [42] [4c] [45] [5f] [43] [48] [41] [4e] [4e] [45] [4c] [5f] [4d] [41] [53] [4b] [3d] [30] [58] [30] [d] [0] [0] [0] [56] [41] [4c] [49] [44] [5f] [42] [49] [54] [53] [3d] [31] [36] [6] [0] [0] [0] [48] [44] [43] [44] [3d] [30] 
==========================================================================
[lavf] stream 2: audio (flac), -aid 1, -alang eng, 2.0 FLAC
[lavf] stream 3: subtitle (unknown), -sid 0, -slang eng, English
[lavf] stream 4: subtitle (unknown), -sid 1, -slang eng, Songs + Signs
LAVF: 2 audio and 1 video streams found
LAVF: build 3427845
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
---






with -demuxer mkv
---
get_path('sub/') -> '/home/mosgalin/.mplayer/sub/'
[file] File size is 636736336 bytes
STREAM: [file] [Coalgirls]_The_Melancholy_of_Haruhi_Suzumiya_-_The_Melancholy_of_Haruhi_Suzumiya_I_(1280x720_Blu-Ray_FLAC)_[2430458D].mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:1677721  eof:0  
Заполнение кэша:  0.00% (0 байт(а))   

[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] /---- [ parsing chapters ] ---------
[mkv] Chapter 0 from 00:00:00.000 to 00:02:30.984, Prologue
[mkv] Chapter 1 from 00:00:00.000 to 00:01:29.965, Opening
[mkv] Chapter 2 from 00:02:31.026 to 00:22:08.035, Episode
[mkv] Chapter 3 from 00:00:00.000 to 00:01:06.984, Ending
[mkv] \---- [ parsing chapters ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 1328.077s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 42
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: und
[mkv] |  + Name: The Melancholy of Haruhi Suzumiya - The Melancholy of Haruhi Suzumiya I
[mkv] |  + Video track
[mkv] |   + Pixel width: 1280
[mkv] |   + Pixel height: 720
[mkv] |   + Display width: 1280
[mkv] |   + Display height: 720
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Codec ID: A_FLAC
[mkv] |  + CodecPrivate, length 154
[mkv] |  + Default duration: 85.333ms ( = 11.719 fps)
[mkv] |  + Language: jpn
[mkv] |  + Name: 2.0 FLAC
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] |   + Bit depth: 16
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: A_FLAC
[mkv] |  + CodecPrivate, length 154
[mkv] |  + Default duration: 85.333ms ( = 11.719 fps)
[mkv] |  + Name: 2.0 FLAC
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] |   + Bit depth: 16
[mkv] | + a track...
[mkv] |  + Track number: 4
[mkv] |  + Track type: Subtitle
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 4355
[mkv] |  + Name: English
[mkv] | + a track...
[mkv] |  + Track number: 5
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 4276
[mkv] |  + Name: Songs + Signs
[mkv] /---- [ parsing attachments ] ---------
[mkv] | + an attachment...
[mkv] |  + FileName: angelina.TTF
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 77048
[mkv] Attachment: angelina.TTF, application/x-truetype-font, 77048 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: arial.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 367112
[mkv] Attachment: arial.ttf, application/x-truetype-font, 367112 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: CENSCBK.TTF
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 162380
[mkv] Attachment: CENSCBK.TTF, application/x-truetype-font, 162380 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: ChaparralPro-Regular.otf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 115724
[mkv] Attachment: ChaparralPro-Regular.otf, application/x-truetype-font, 115724 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: epmgobld_ending.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 158380
[mkv] Attachment: epmgobld_ending.ttf, application/x-truetype-font, 158380 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: epmgobld_haruhi00.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 217832
[mkv] Attachment: epmgobld_haruhi00.ttf, application/x-truetype-font, 217832 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: Folks-Bold.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 55696
[mkv] Attachment: Folks-Bold.ttf, application/x-truetype-font, 55696 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: GosmickSans.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 59696
[mkv] Attachment: GosmickSans.ttf, application/x-truetype-font, 59696 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: GosmickSansBold.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 66844
[mkv] Attachment: GosmickSansBold.ttf, application/x-truetype-font, 66844 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: GosmickSansOblique.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 60084
[mkv] Attachment: GosmickSansOblique.ttf, application/x-truetype-font, 60084 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: Jambono-Regular.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 22252
[mkv] Attachment: Jambono-Regular.ttf, application/x-truetype-font, 22252 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: KOMTXT__.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 45844
[mkv] Attachment: KOMTXT__.ttf, application/x-truetype-font, 45844 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: KOMTXTB_.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 53636
[mkv] Attachment: KOMTXTB_.ttf, application/x-truetype-font, 53636 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: KOMTXTK_.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 50160
[mkv] Attachment: KOMTXTK_.ttf, application/x-truetype-font, 50160 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: KOMTXTKB.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 55524
[mkv] Attachment: KOMTXTKB.ttf, application/x-truetype-font, 55524 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: Marker_SD_1.2.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 35176
[mkv] Attachment: Marker_SD_1.2.ttf, application/x-truetype-font, 35176 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: MyriadPro-Bold.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 81436
[mkv] Attachment: MyriadPro-Bold.ttf, application/x-truetype-font, 81436 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: MyriadPro-Regular.otf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 79364
[mkv] Attachment: MyriadPro-Regular.otf, application/x-truetype-font, 79364 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: MyriadPro-RegularHaruhi.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 89492
[mkv] Attachment: MyriadPro-RegularHaruhi.ttf, application/x-truetype-font, 89492 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: MyriadPro-SemiCn.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 99424
[mkv] Attachment: MyriadPro-SemiCn.ttf, application/x-truetype-font, 99424 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: MyriadPro-SemiCnIt.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 102304
[mkv] Attachment: MyriadPro-SemiCnIt.ttf, application/x-truetype-font, 102304 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: verdana.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 171792
[mkv] Attachment: verdana.ttf, application/x-truetype-font, 171792 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: WarnockPro-LightDisp.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 148356
[mkv] Attachment: WarnockPro-LightDisp.ttf, application/x-truetype-font, 148356 bytes
[mkv] \---- [ parsing attachments ] ---------
[mkv] |+ found cluster, headers are parsed completely :)
==> Нашёл видеопоток: 1
[mkv] Aspect: 1.777778
[mkv] ID дорожки 1: video (V_MPEG4/ISO/AVC) "The Melancholy of Haruhi Suzumiya - The Melancholy of Haruhi Suzumiya I", -vid 0
==> Нашёл аудиопоток: 2
[mkv] ID дорожки 2: audio (A_FLAC) "2.0 FLAC", -aid 0, -alang jpn
==> Нашёл аудиопоток: 3
[mkv] ID дорожки 3: audio (A_FLAC) "2.0 FLAC", -aid 1, -alang eng
[mkv] ID дорожки 4: subtitles (S_TEXT/ASS) "English", -sid 0, -slang eng
[mkv] ID дорожки 5: subtitles (S_TEXT/ASS) "Songs + Signs", -sid 1, -slang eng
[mkv] Будет воспроизводиться дорожка 1.
Обнаружен Matroska формат файла!
VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
---


-- 

Vladimir


More information about the MPlayer-users mailing list