Page 1 of 1

How to set freetype-font in command line?

Posted: 15 Jun 2011 15:00
by K.T
vlc --extraintf=logger --verbose=2 D:\\Code\Web\js\VLC\1.mp4 :sub-file=D:\\Code\Web\js\VLC\mythbusters.s09e03.720p-dhd.srt :subsdec-align=0 :freetype-rel-fontsize=16 :file-caching=300 :freetype-rel-fontsize=12 :freetype-font=simsun

I use these command to play video with subtitle, but the subtitle show chinese with blocks. In command, I have set ":freetype-font=simsun". In VLC Media Player, It show subtitle perfect, but in command, it show bad.

The information below is the log message. I found it ignote my freetype-font setting, and aways load the font like this, [027b7998] freetype spu text debug: Using Arial as font from file C:/Windows/fonts/arial.ttf

VLC Version:1.1.9
Windows 7 x64

[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 m
s / 1 intvls (Avg 3.000 ms)
[0213a3a0] main demux meta debug: looking for meta reader module: 2 candidates
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Users\seasons.lee\AppD
ata\Roaming\vlc\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.lua
[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 m
s / 1 intvls (Avg 3.000 ms)
[0213a3a0] main demux meta debug: looking for meta reader module: 2 candidates
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Users\seasons.lee\AppD
ata\Roaming\vlc\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.lua
[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 m
s / 1 intvls (Avg 3.000 ms)
[0213a3a0] main demux meta debug: looking for meta reader module: 2 candidates
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Users\seasons.lee\AppD
ata\Roaming\vlc\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.lua
[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 m
s / 1 intvls (Avg 3.000 ms)
[0213a3a0] main demux meta debug: looking for meta reader module: 2 candidates
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Users\seasons.lee\AppD
ata\Roaming\vlc\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.lua
[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 2.000 ms - Total 2.000 m
s / 1 intvls (Avg 2.000 ms)
[0213a3a0] main demux meta debug: looking for meta reader module: 2 candidates
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Users\seasons.lee\AppD
ata\Roaming\vlc\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.lua
[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 2.000 ms - Total 2.000 m
s / 1 intvls (Avg 2.000 ms)
[0213a3a0] main demux meta debug: looking for meta reader module: 2 candidates
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Users\seasons.lee\AppD
ata\Roaming\vlc\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[0213a3a0] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.lua
[0213a3a0] main demux meta debug: no meta reader module matching "any" could be
loaded
[0213a3a0] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 m
s / 1 intvls (Avg 3.000 ms)
[0215cf10] main input debug: `file:///D://Code/Web/js/VLC/1.mp4' successfully op
ened
[026a1dd8] mp4 demux debug: elst (0) gives 0ms (movie)-> 0ms (track)
[026a1dd8] mp4 demux debug: track[Id 0x1] using Sync Sample Box (stss)
[026a1dd8] mp4 demux debug: stts gives 0 --> 0 (sample number)
[0215cf10] main input debug: Buffering 0%
[0215cf10] main input debug: Buffering 0%
[0215cf10] main input debug: no usable vout present, spawning one
[0215cf10] main input debug: slave 1 EOF
[0215cf10] main input debug: Buffering 33%
[0215cf10] main input debug: Buffering 66%
[0215cf10] main input debug: Buffering 100%
[0215cf10] main input debug: Stream buffering done (400 ms in 4 ms)
[027b7998] main spu text debug: looking for text renderer module: 2 candidates
[027b7998] freetype spu text debug: Building font databases.
[027b7998] freetype spu text debug: Took 4000 microseconds
[027b7998] freetype spu text debug: Using Arial as font from file C:/Windows/fon
ts/arial.ttf
[027b7998] freetype spu text debug: using fontsize: 2
[027b7998] main spu text debug: using text renderer module "freetype"
[027b7998] main spu text debug: TIMER module_need() : 12.000 ms - Total 12.000 m
s / 1 intvls (Avg 12.000 ms)
[05ecba80] main scale debug: looking for video filter2 module: 18 candidates
[05ecba80] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with sc
aling using Bicubic (good quality)
[05ecba80] main scale debug: using video filter2 module "swscale"
[05ecba80] main scale debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1
intvls (Avg 2.000 ms)
[05ed8188] main scale debug: looking for video filter2 module: 18 candidates
[05ed8188] yuvp scale debug: YUVP to YUVA converter
[05ed8188] main scale debug: using video filter2 module "yuvp"
[05ed8188] main scale debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1
intvls (Avg 5.000 ms)
[05ea7188] main video output debug: window size: 720x480
[05ea7188] main video output debug: Deinterlacing available
[05ea7188] main video output debug: deinterlace 0, mode blend, is_needed 0
[05ea7188] main video output debug: looking for video output module: 1 candidate

[05ea7188] vout_wrapper video output debug: Opening vout display wrapper
[026c1398] main generic debug: looking for vout display module: 8 candidates
[026c1398] direct3d generic debug: creating Vout EventThread
[026c1398] direct3d generic debug: DirectXCreateWindow
[0218dca8] main window debug: looking for vout window hwnd module: 3 candidates
[0218dca8] qt4 window debug: requesting video...
[0218dbf8] qt4 interface debug: Video was requested 0, 0
[0218dbf8] qt4 interface debug: embedded video ready (handle 00290abe)
[0218dca8] main window debug: using vout window hwnd module "qt4"
[0218dca8] main window debug: TIMER module_need() : 30.000 ms - Total 30.000 ms
/ 1 intvls (Avg 30.000 ms)
[026c1398] direct3d generic debug: created video sub-window
[026c1398] direct3d generic debug: Vout EventThread running
[026c1398] direct3d generic debug: disabling screen saver
[026c1398] main generic debug: VoutDisplayEvent 'resize' 736x518 window
[026c1398] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords:
0,0,736,490
[026c1398] direct3d generic debug: DirectXUpdateRects image_src_clipped coords:
0,0,720,480
[026c1398] direct3d generic warning: trying surface pixel format: YV12
[026c1398] direct3d generic debug: selected surface pixel format is YV12
[026c1398] direct3d generic debug: Direct3D scene created successfully
[026c1398] direct3d generic debug: Direct3D device adapter successfully initiali
zed
[026c1398] main generic debug: using vout display module "direct3d"
[026c1398] main generic debug: TIMER module_need() : 70.000 ms - Total 70.000 ms
/ 1 intvls (Avg 70.000 ms)
[05ea7188] main video output debug: using video output module "vout_wrapper"
[05ea7188] main video output debug: TIMER module_need() : 71.000 ms - Total 71.0
00 ms / 1 intvls (Avg 71.000 ms)
[05ea7188] main video output debug: got 1 direct buffer(s)
[05ea7188] main video output debug: pic render sz 720x480, of (0,0), vsz 720x480
, 4cc J420, sar 1:1, msk r0x0 g0x0 b0x0
[05ea7188] main video output debug: pic in sz 720x480, of (0,0), vsz 720x480, 4c
c J420, sar 1:1, msk r0x0 g0x0 b0x0
[05ea7188] main video output debug: pic out sz 720x480, of (0,0), vsz 720x480, 4
cc J420, sar 1:1, msk r0x0 g0x0 b0x0
[05ea7188] main video output debug: direct render, mapping render pictures 0-23
to system pictures 1-24
[026c1398] main generic debug: VoutDisplayEvent 'resize' 720x480 window
[026c1398] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords:
0,0,720,480
[026c1398] direct3d generic debug: DirectXUpdateRects image_src_clipped coords:
0,0,720,480
[026cfb88] avcodec decoder debug: using direct rendering
[026cfb88] main decoder debug: End of video preroll
[026cfb88] main decoder debug: Received first picture
[027b7998] freetype spu text debug: using fontsize: 40
[0600ee90] main blend debug: looking for video blending module: 1 candidate
[0600ee90] blend blend debug: chroma: YUVA -> J420
[0600ee90] main blend debug: using video blending module "blend"
[0600ee90] main blend debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1
intvls (Avg 1.000 ms)
[0215cf10] main input debug: Decoder buffering done in 135 ms
[05ea7188] main video output debug: Post-processing available
[05ea7188] main video output warning: vlc_object_find_name(postproc) is not safe
!
[05ea7188] main video output warning: late picture skipped (106071 > -1007)
[05ea7188] main video output warning: late picture skipped (103074 > -1007)
[05ea7188] main video output warning: late picture skipped (100077 > -1007)
[05ea7188] main video output warning: late picture skipped (96081 > -1007)
[05ea7188] main video output warning: late picture skipped (90087 > -1007)
[05ea7188] main video output warning: late picture skipped (87090 > -1007)
[05ea7188] main video output warning: late picture skipped (84093 > -1007)
[05ea7188] main video output warning: late picture skipped (81096 > -1007)
[05ea7188] main video output warning: late picture skipped (78099 > -1007)
[05ea7188] main video output warning: late picture skipped (74103 > -1007)
[05ea7188] main video output warning: late picture skipped (147030 > -1007)
[05ea7188] main video output warning: late picture skipped (143034 > -1007)
[05ea7188] main video output warning: late picture skipped (140037 > -1007)
[05ea7188] main video output warning: late picture skipped (137040 > -1007)
[05ea7188] main video output warning: late picture skipped (134043 > -1007)
[05ea7188] main video output warning: late picture skipped (131046 > -1007)
[05ea7188] main video output warning: late picture skipped (127050 > -1007)
[05ea7188] main video output warning: late picture skipped (120057 > -1007)
[05ea7188] main video output warning: late picture skipped (115062 > -1007)
[05ea7188] main video output warning: late picture skipped (112065 > -1007)
[05ea7188] main video output warning: late picture skipped (109068 > -1007)
[05ea7188] main video output warning: late picture skipped (82107 > -1007)
[05ea7188] main video output warning: late picture skipped (45149 > -1007)
[05ea7188] main video output warning: late picture skipped (199 > -1007)
[05ea7188] main video output warning: late picture skipped (28202 > -1005)
[026c1398] main generic debug: auto hidding mouse
[05ea7188] main video output warning: late picture skipped (392 > -1001)
[0213a6e8] main xml debug: looking for xml module: 2 candidates
[0213a6e8] main xml debug: using xml module "xml"
[0213a6e8] main xml debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 i
ntvls (Avg 2.000 ms)
[026c1398] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords:
0,0,720,480
[026c1398] direct3d generic debug: DirectXUpdateRects image_src_clipped coords:
0,0,720,480
[026c1398] main generic debug: auto hidding mouse
[02178798] main playlist debug: incoming request - stopping current input
[02178798] main playlist debug: dying input
[0215cf10] main input debug: control type=0
[0215cf10] main input debug: control: stopping input
[02178798] main playlist debug: dying input
[026cfb88] main decoder debug: thread times: real 0m8.096809s, kernel 0m0.000000
s, user 0m1.107607s
[026cfb88] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) sto
pped
[026cfb88] main decoder debug: removing module "avcodec"
[026cfb88] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO
[05ea7188] main video output debug: [0] 2 0
[05ea7188] main video output debug: [1] 2 0
[05ea7188] main video output debug: [2] 2 0
[05ea7188] main video output debug: [3] 2 0
[05ea7188] main video output debug: [4] 2 0
[05ea7188] main video output debug: [5] 2 0
[05ea7188] main video output debug: [6] 2 0
[05ea7188] main video output debug: [7] 2 0
[05ea7188] main video output debug: [8] 2 0
[05ea7188] main video output debug: [9] 2 0
[05ea7188] main video output debug: [10] 0 0
[05ea7188] main video output debug: [11] 4 0
[05ea7188] main video output debug: [12] 2 0
[05ea7188] main video output debug: [13] 2 0
[05ea7188] main video output debug: [14] 2 0
[05ea7188] main video output debug: [15] 4 0
[05ea7188] main video output debug: [16] 4 0
[05ea7188] main video output debug: [17] 4 0
[05ea7188] main video output debug: [18] 4 0
[05ea7188] main video output debug: [19] 4 0
[05ea7188] main video output debug: [20] 4 0
[05ea7188] main video output debug: [21] 4 0
[05ea7188] main video output debug: [22] 4 0
[05ea7188] main video output debug: [23] 4 0
[0215cf10] main input debug: saving a free vout
[05d41200] main decoder debug: thread times: real 0m8.097809s, kernel 0m0.000000
s, user 0m0.000000s
[05d41200] main decoder debug: removing module "subsdec"
[05d41200] main decoder debug: killing decoder fourcc `subt', 0 PES in FIFO
[026a1dd8] mp4 demux debug: freeing all memory
[026a1dd8] main demux debug: removing module "mp4"
[02691d98] main stream debug: removing module "stream_filter_record"
[02197858] main access debug: removing module "filesystem"
[026a1ea0] main demux debug: removing module "subtitle"
[02691fd8] main stream debug: removing module "stream_filter_record"
[02197a18] main access debug: removing module "filesystem"
[026a1f68] main demux debug: removing module "subtitle"
[02692158] main stream debug: removing module "stream_filter_record"
[02197af8] main access debug: removing module "filesystem"
[026a2030] main demux debug: removing module "subtitle"
[026922d8] main stream debug: removing module "stream_filter_record"
[02197bd8] main access debug: removing module "filesystem"
[026a20f8] main demux debug: removing module "subtitle"
[02692458] main stream debug: removing module "stream_filter_record"
[02197cb8] main access debug: removing module "filesystem"
[026a21c0] main demux debug: removing module "subtitle"
[026925d8] main stream debug: removing module "stream_filter_record"
[02197d98] main access debug: removing module "filesystem"
[026a2288] main demux debug: removing module "subtitle"
[026928d8] main stream debug: removing module "stream_filter_record"
[02197e78] main access debug: removing module "filesystem"
[026a2350] main demux debug: removing module "subtitle"
[02692a58] main stream debug: removing module "stream_filter_record"
[02197f58] main access debug: removing module "filesystem"
[05d37390] main demux debug: removing module "subtitle"
[02692bd8] main stream debug: removing module "stream_filter_record"
[02198038] main access debug: removing module "filesystem"
[05d37458] main demux debug: removing module "subtitle"
[02692d58] main stream debug: removing module "stream_filter_record"
[02198118] main access debug: removing module "filesystem"
[05d375e8] main demux debug: removing module "subtitle"
[02692ed8] main stream debug: removing module "stream_filter_record"
[021981f8] main access debug: removing module "filesystem"
[0215cf10] main input debug: Program doesn't contain anymore ES

Re: How to set freetype-font in command line?

Posted: 16 Jun 2011 00:54
by Jean-Baptiste Kempf
use VLC 1.1.10

Re: How to set freetype-font in command line?

Posted: 16 Jun 2011 04:05
by K.T
There is a bug about subtitle in 1.1.10. Whether I set font with chinese font or encoding with utf-8, the subtitle aways display failed. The message say "faild to load font". In 1.1.9, there will be no problem.

Re: How to set freetype-font in command line?

Posted: 16 Jun 2011 12:23
by Jean-Baptiste Kempf
Can you share the logs, please?

Re: How to set freetype-font in command line?

Posted: 17 Jun 2011 04:15
by K.T
I have share my log in my first artical. If you want the log about 1.1.10, read it below. It has set the font as Microsoft YaHei.

main debug: processing request item 1.mp4 node 播放列表 skip 0
main debug: resyncing on 1.mp4
main debug: 1.mp4 is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for '1.mp4'
main debug: thread started
main debug: thread (input) created at priority 1 (../.././src/input/input.c:220)
qt4 debug: IM: Setting an input
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\Users\seasons.lee\AppData\Local\Temp'
main debug: `file:///C:/Users/seasons.lee/Desktop/1.mp4' gives access `file' demux `' path `C:\Users\seasons.lee\Desktop\1.mp4'
main debug: creating demux: access='file' demux='' path='C:\Users\seasons.lee\Desktop\1.mp4'
main debug: looking for access_demux module: 2 candidates
main debug: no access_demux module matching "file" could be loaded
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating access 'file' path='C:\Users\seasons.lee\Desktop\1.mp4'
main debug: looking for access module: 2 candidates
filesystem debug: opening file `C:\Users\seasons.lee\Desktop\1.mp4'
main debug: using access module "filesystem"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module: 2 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating demux: access='file' demux='' path='C:\Users\seasons.lee\Desktop\1.mp4'
main debug: looking for demux module: 52 candidates
mp4 debug: found Box: ftyp size 28
mp4 debug: found Box: moov size 7441
mp4 debug: found Box: mvhd size 108
mp4 debug: read box: "mvhd" creation 734225d-13h:02m:11s modification 734225d-13h:02m:11s time scale 90000 duration 694977d-48h:00m:33s rate 1.000000 volume 1.000000 next track id 2
mp4 debug: found Box: trak size 7281
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 734225d-13h:02m:11s modification 734225d-13h:02m:11s duration 695002d-55h:29m:28s track ID 1 layer 0 volume 0.000000 width 720.000000 height 480.000000
mp4 debug: found Box: edts size 36
mp4 debug: found Box: elst size 28
mp4 debug: read box: "elst" entry-count 1
mp4 debug: found Box: mdia size 7145
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 734225d-13h:02m:11s modification 734225d-13h:02m:11s time scale 1001 duration 694977d-54h:45m:23s language ```
mp4 debug: found Box: hdlr size 45
mp4 debug: read box: "hdlr" handler type vide name VideoHandler
mp4 debug: found Box: minf size 7060
mp4 debug: found Box: vmhd size 20
mp4 debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 6996
mp4 debug: found Box: stsd size 152
mp4 debug: found Box: avc1 size 136
mp4 debug: found Box: avcC size 50
mp4 debug: read box: "avcC" version=1 profile=0x64 level=0x20 length size=4 sps=1 pps=1
mp4 debug: - sps[0] length=25
mp4 debug: - pps[0] length=6
mp4 debug: read box: "vide" in stsd 720x480 depth 24
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 4360
mp4 debug: read box: "stts" entry-count 543
mp4 debug: found Box: stss size 28
mp4 debug: read box: "stss" entry-count 3
mp4 debug: found Box: stsc size 28
mp4 debug: read box: "stsc" entry-count 1
mp4 debug: found Box: stsz size 2400
mp4 debug: read box: "stsz" sample-size 0 sample-count 595
mp4 debug: found Box: stco size 20
mp4 debug: read box: "co64" entry-count 1
mp4 debug: found Box: udta size 44
mp4 debug: found Box: cenc size 36
mp4 debug: read box: "cenc" text=`vlc 1.1.10 stream output'
mp4 debug: found Box: wide size 8
mp4 debug: skip box: "wide"
mp4 debug: found Box: mdat size 185363
mp4 debug: skip box: "mdat"
mp4 debug: dumping root Box "root"
mp4 debug: | + ftyp size 28
mp4 debug: | + moov size 7441
mp4 debug: | | + mvhd size 108
mp4 debug: | | + trak size 7281
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + edts size 36
mp4 debug: | | | | + elst size 28
mp4 debug: | | | + mdia size 7145
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 45
mp4 debug: | | | | + minf size 7060
mp4 debug: | | | | | + vmhd size 20
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 6996
mp4 debug: | | | | | | + stsd size 152
mp4 debug: | | | | | | | + avc1 size 136
mp4 debug: | | | | | | | | + avcC size 50
mp4 debug: | | | | | | + stts size 4360
mp4 debug: | | | | | | + stss size 28
mp4 debug: | | | | | | + stsc size 28
mp4 debug: | | | | | | + stsz size 2400
mp4 debug: | | | | | | + stco size 20
mp4 debug: | | + udta size 44
mp4 debug: | | | + cenc size 36
mp4 debug: | + wide size 8
mp4 debug: | + mdat size 185363
mp4 debug: ISO Media file (isom) version 0.
mp4 debug: found 1 tracks
mp4 warning: elst box found
mp4 debug: - [0] duration=24299ms media time=0ms) rate=1.0
mp4 debug: track[Id 0x1] read 1 chunk
mp4 debug: track[Id 0x1] read 595 samples length:24s
main debug: selecting program id=0
mp4 debug: adding track[Id 0x1] video (enable) language en
main debug: using demux module "mp4"
main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
mp4 warning: control query 14 unimplemented
main debug: forced subtitle: C:\Users\seasons.lee\Desktop\1.srt
main debug: `file:///C:/Users/seasons.lee/Desktop/1.srt' gives access `file' demux `' path `C:\Users\seasons.lee\Desktop\1.srt'
main debug: creating demux: access='file' demux='subtitle' path='C:\Users\seasons.lee\Desktop\1.srt'
main debug: looking for access_demux module: 2 candidates
main debug: no access_demux module matching "file" could be loaded
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating access 'file' path='C:\Users\seasons.lee\Desktop\1.srt'
main debug: looking for access module: 2 candidates
filesystem debug: opening file `C:\Users\seasons.lee\Desktop\1.srt'
main debug: using access module "filesystem"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module: 2 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating demux: access='file' demux='subtitle' path='C:\Users\seasons.lee\Desktop\1.srt'
main debug: looking for demux module: 3 candidates
vobsub debug: this doesn't seem to be a vobsub file
subtitle debug: Movie fps: 24.526421
subtitle debug: autodetecting subtitle format
subtitle debug: detected SubRIP format
subtitle debug: loading all subtitles...
subtitle debug: loaded 1001 subtitles
main debug: using demux module "subtitle"
main debug: TIMER module_need() : 12.000 ms - Total 12.000 ms / 1 intvls (Avg 12.000 ms)
main debug: looking for a subtitle file in C:\Users\seasons.lee\Desktop\
main debug: autodetected subtitle: C:\Users\seasons.lee\Desktop\1.ass with priority 4
main debug: autodetected subtitle: C:\Users\seasons.lee\Desktop\1.srt with priority 4
main debug: `file:///C:/Users/seasons.lee/Desktop/1.ass' gives access `file' demux `' path `C:\Users\seasons.lee\Desktop\1.ass'
main debug: creating demux: access='file' demux='subtitle' path='C:\Users\seasons.lee\Desktop\1.ass'
main debug: looking for access_demux module: 2 candidates
main debug: no access_demux module matching "file" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access 'file' path='C:\Users\seasons.lee\Desktop\1.ass'
main debug: looking for access module: 2 candidates
filesystem debug: opening file `C:\Users\seasons.lee\Desktop\1.ass'
main debug: using access module "filesystem"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module: 2 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating demux: access='file' demux='subtitle' path='C:\Users\seasons.lee\Desktop\1.ass'
main debug: looking for demux module: 3 candidates
main debug: UTF-16LE BOM detected
vobsub debug: this doesn't seem to be a vobsub file
subtitle debug: Movie fps: 24.526421
subtitle debug: autodetecting subtitle format
main debug: UTF-16LE BOM detected
subtitle debug: detected SSA/ASS format
subtitle debug: loading all subtitles...
main debug: UTF-16LE BOM detected
subtitle debug: loaded 1025 subtitles
main debug: using demux module "subtitle"
main debug: TIMER module_need() : 19.000 ms - Total 19.000 ms / 1 intvls (Avg 19.000 ms)
main debug: looking for decoder module: 34 candidates
avcodec debug: libavcodec already initialized
avcodec debug: trying to use direct rendering
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: thread started
main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301)
main debug: looking for decoder module: 34 candidates
avcodec debug: libavcodec already initialized
avcodec debug: codec not found (Text subtitles with various tags)
subsdec debug: trying configured character encoding: UTF-8
main debug: using decoder module "subsdec"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301)
main debug: thread started
main debug: idx1=-1(??) idx2=-1(??)
main debug: looking for meta reader module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\seasons.lee\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.lua
main debug: no meta reader module matching "any" could be loaded
main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main debug: looking for meta reader module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\seasons.lee\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.lua
main debug: no meta reader module matching "any" could be loaded
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: looking for meta reader module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\seasons.lee\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.lua
main debug: no meta reader module matching "any" could be loaded
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: `file:///C:/Users/seasons.lee/Desktop/1.mp4' successfully opened
mp4 debug: elst (0) gives 0ms (movie)-> 0ms (track)
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stts gives 0 --> 0 (sample number)
main debug: Buffering 0%
main debug: Buffering 0%
main debug: Buffering 33%
main debug: Buffering 66%
main debug: no usable vout present, spawning one
main debug: Buffering 100%
main debug: Stream buffering done (400 ms in 0 ms)
main debug: looking for text renderer module: 2 candidates
freetype debug: Using 微软雅黑 as font from file (null)
freetype error: failed to load font file (null)

main debug: using text renderer module "dummy"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: looking for video filter2 module: 18 candidates
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for video filter2 module: 18 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: window size: 720x480
main debug: Deinterlacing available
main debug: deinterlace 0, mode blend, is_needed 0
main debug: looking for video output module: 1 candidate
vout_wrapper debug: Opening vout display wrapper
main debug: looking for vout display module: 8 candidates
direct3d debug: creating Vout EventThread
direct3d debug: DirectXCreateWindow
main debug: looking for vout window hwnd module: 3 candidates
qt4 debug: requesting video...
qt4 debug: Video was requested 0, 0
main debug: using vout window hwnd module "qt4"
main debug: TIMER module_need() : 152.000 ms - Total 152.000 ms / 1 intvls (Avg 152.000 ms)
direct3d debug: created video sub-window
direct3d debug: Vout EventThread running
direct3d debug: disabling screen saver
main debug: VoutDisplayEvent 'resize' 736x518 window
direct3d warning: trying surface pixel format: YV12
direct3d debug: selected surface pixel format is YV12
direct3d debug: Direct3D scene created successfully
direct3d debug: Direct3D device adapter successfully initialized
main debug: using vout display module "direct3d"
main debug: TIMER module_need() : 184.000 ms - Total 184.000 ms / 1 intvls (Avg 184.000 ms)
main debug: using video output module "vout_wrapper"
main debug: TIMER module_need() : 184.000 ms - Total 184.000 ms / 1 intvls (Avg 184.000 ms)
main debug: got 1 direct buffer(s)
main debug: pic render sz 720x480, of (0,0), vsz 720x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic in sz 720x480, of (0,0), vsz 720x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic out sz 720x480, of (0,0), vsz 720x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
main debug: direct render, mapping render pictures 0-23 to system pictures 1-24
main debug: VoutDisplayEvent 'resize' 720x480 window
avcodec debug: using direct rendering
main debug: End of video preroll
main debug: Received first picture
main debug: Decoder buffering done in 219 ms
main debug: Post-processing available
main warning: vlc_object_find_name(postproc) is not safe!
main warning: late picture skipped (4091 > -380)
main warning: late picture skipped (325 > -738)
main warning: late picture skipped (6319 > -738)
main warning: late picture skipped (2155 > -803)
main warning: late picture skipped (9356 > -1102)
main warning: late picture skipped (2383 > -1326)
main warning: late picture skipped (8377 > -1326)
main warning: late picture skipped (11187 > -1326)
main warning: late picture skipped (10415 > -1370)
main warning: late picture skipped (16409 > -1370)
main warning: late picture skipped (2443 > -1527)
main warning: late picture skipped (8250 > -1527)
main warning: late picture skipped (4275 > -1645)
main warning: late picture skipped (14472 > -1483)
main warning: late picture skipped (8478 > -1483)
main debug: control type=1
main debug: auto hidding mouse

Re: How to set freetype-font in command line?

Posted: 17 Jun 2011 13:07
by Jean-Baptiste Kempf
Great. I know where the bug is.
If you want me to fix this in a future version of VLC, can you mail me the font, please? jb@videolan....

Re: How to set freetype-font in command line?

Posted: 18 Jun 2011 05:01
by K.T
Great. I know where the bug is.
If you want me to fix this in a future version of VLC, can you mail me the font, please? jb@videolan....
jb@videolan....
It's your full email address? What is three points mean?

Re: How to set freetype-font in command line?

Posted: 18 Jun 2011 12:36
by VLC_help
No points =) It is videolan.org, but because of spam bots, publishing full email addresses isn't something you want to do.

Re: How to set freetype-font in command line?

Posted: 19 Jun 2011 17:21
by K.T
Great. I know where the bug is.
If you want me to fix this in a future version of VLC, can you mail me the font, please? jb@videolan....
The file have been sent. If you have some solution, please reply me. Thanks.

Re: How to set freetype-font in command line?

Posted: 20 Jun 2011 00:32
by Jean-Baptiste Kempf
I haven't got it. Are you sure you did?

Re: How to set freetype-font in command line?

Posted: 21 Jun 2011 05:28
by K.T
jb@videolan.org
I have sent it again. Maybe it's ban as junk e-mail.

Re: How to set freetype-font in command line?

Posted: 21 Jun 2011 10:15
by Jean-Baptiste Kempf
Can you share it elsewhere?

Re: How to set freetype-font in command line?

Posted: 30 Jun 2011 12:17
by dodoharry2
SAME post as
"No more chinese subtitle in 1.1.10"
viewtopic.php?p=303585