[FFmpeg-user] problem with subtitle fonts.
Lei Chen
honestgold at gmail.com
Wed May 29 20:14:56 CEST 2013
I want to burn subtitle with chinese fonts and it is using the arial,
getting ascii binary instead of chinese fonts, How can I tell it to use
some other fonts? I am running in Freebsd or Linux.
Getting the error: [Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found,
selecting one more font for (Arial, 80, 0)
ffmpeg1 -i Bluray.720p.AC3.x264-CHD.mkv -sameq -vcodec libx264 -threads 26
-y -vf ass=a.ass fare.mp4
ffmpeg version 1.0.5 Copyright (c) 2000-2012 the FFmpeg developers
built on May 28 2013 19:38:07 with gcc 4.2.2 (GCC) 20070831 prerelease
[FreeBSD]
configuration: --enable-x11grab --prefix=/usr/local --mandir=/usr/local/man
--incdir=/usr/local/include/ffmpeg1 --libdir=/usr/local/lib/ffmpeg1
--shlibdir=/usr/local/lib/ffmpeg1 --datadir=/usr/local/share/ffmpeg1
--build-suffix=1 --progs-suffix=1 --enable-shared --enable-gpl
--enable-postproc --enable-avfilter --enable-pthreads
--enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo
--cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis
-I/usr/local/include' --extra-ldflags='-L/usr/local/lib '
--extra-libs=-pthread --disable-debug --enable-libaacplus
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass
--enable-libcdio --enable-libcelt --enable-libfaac --enable-libfdk-aac
--enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls
--enable-libgsm --enable-libmp3lame --enable-libbluray --enable-libv4l2
--enable-libmodplug --enable-openal --enable-libopencv --enable-libopenjpeg
--disable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --e libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, matroska,webm, from 'Bluray.720p.AC3.x264-CHD.mkv':
Metadata:
title : 霸王别姬 by renqian
creation_time : 2011-10-06 14:49:26
Duration: 02:44:25.66, start: 0.000000, bitrate: 5689 kb/s
Chapter #0.0: start 0.000000, end 597.480000
Metadata:
title : Chapter 1
Chapter #0.1: start 597.480000, end 1106.200000
Metadata:
title : Chapter 2
Chapter #0.2: start 1106.200000, end 1470.640000
Metadata:
title : Chapter 3
Chapter #0.3: start 1470.640000, end 1829.279000
Metadata:
title : Chapter 4
Chapter #0.4: start 1829.279000, end 2198.800000
Metadata:
title : Chapter 5
Chapter #0.5: start 2198.800000, end 2467.599000
Metadata:
title : Chapter 6
Chapter #0.6: start 2467.599000, end 2839.199000
Metadata:
title : Chapter 7
Chapter #0.7: start 2839.199000, end 3106.079000
Metadata:
title : Chapter 8
Chapter #0.8: start 3106.079000, end 3445.840000
Metadata:
title : Chapter 9
Chapter #0.9: start 3445.840000, end 3725.400000
Metadata:
title : Chapter 10
Chapter #0.10: start 3725.400000, end 4218.560000
Metadata:
title : Chapter 11
Chapter #0.11: start 4218.560000, end 4674.239000
Metadata:
title : Chapter 12
Chapter #0.12: start 4674.239000, end 5362.319000
Metadata:
title : Chapter 13
Chapter #0.13: start 5362.319000, end 5869.920000
Metadata:
title : Chapter 14
Chapter #0.14: start 5869.920000, end 6268.600000
Metadata:
title : Chapter 15
Chapter #0.15: start 6268.600000, end 6561.399000
Metadata:
title : Chapter 16
Chapter #0.16: start 6561.399000, end 6872.680000
Metadata:
title : Chapter 17
Chapter #0.17: start 6872.680000, end 7418.680000
Metadata:
title : Chapter 18
Chapter #0.18: start 7418.680000, end 7808.000000
Metadata:
title : Chapter 19
Chapter #0.19: start 7808.000000, end 8314.479000
Metadata:
title : Chapter 20
Chapter #0.20: start 8314.479000, end 8945.920000
Metadata:
title : Chapter 23
Chapter #0.21: start 8945.920000, end 9349.840000
Metadata:
title : Chapter 24
Chapter #0.22: start 9349.840000, end 9738.239000
Metadata:
title : Chapter 25
Stream #0:0(chi): Video: h264 (High), yuv420p, 1280x692 [SAR 1:1 DAR
320:173], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Stream #0:1(chi): Audio: ac3, 48000 Hz, stereo, s16, 640 kb/s (default)
[Parsed_ass_0 @ 0x80ae2e7a0] Added subtitle file: 'a.ass' (2 styles, 1350
events)
[libx264 @ 0x80ae63c20] Application has requested 26 threads. Using a
thread count greater than 16 is not recommended.
[libx264 @ 0x80ae63c20] using SAR=1/1
[libx264 @ 0x80ae63c20] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0x80ae63c20] profile High, level 3.1
[libx264 @ 0x80ae63c20] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft
2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=26 lookahead_threads=4
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'fare.mp4':
Metadata:
title : 霸王别姬 by renqian
encoder : Lavf54.29.104
Chapter #0.0: start 0.000000, end 597.480000
Metadata:
title : Chapter 1
Chapter #0.1: start 597.480000, end 1106.200000
Metadata:
title : Chapter 2
Chapter #0.2: start 1106.200000, end 1470.640000
Metadata:
title : Chapter 3
Chapter #0.3: start 1470.640000, end 1829.279000
Metadata:
title : Chapter 4
Chapter #0.4: start 1829.279000, end 2198.800000
Metadata:
title : Chapter 5
Chapter #0.5: start 2198.800000, end 2467.599000
Metadata:
title : Chapter 6
Chapter #0.6: start 2467.599000, end 2839.199000
Metadata:
title : Chapter 7
Chapter #0.7: start 2839.199000, end 3106.079000
Metadata:
title : Chapter 8
Chapter #0.8: start 3106.079000, end 3445.840000
Metadata:
title : Chapter 9
Chapter #0.9: start 3445.840000, end 3725.400000
Metadata:
title : Chapter 10
Chapter #0.10: start 3725.400000, end 4218.560000
Metadata:
title : Chapter 11
Chapter #0.11: start 4218.560000, end 4674.239000
Metadata:
title : Chapter 12
Chapter #0.12: start 4674.239000, end 5362.319000
Metadata:
title : Chapter 13
Chapter #0.13: start 5362.319000, end 5869.920000
Metadata:
title : Chapter 14
Chapter #0.14: start 5869.920000, end 6268.600000
Metadata:
title : Chapter 15
Chapter #0.15: start 6268.600000, end 6561.399000
Metadata:
title : Chapter 16
Chapter #0.16: start 6561.399000, end 6872.680000
Metadata:
title : Chapter 17
Chapter #0.17: start 6872.680000, end 7418.680000
Metadata:
title : Chapter 18
Chapter #0.18: start 7418.680000, end 7808.000000
Metadata:
title : Chapter 19
Chapter #0.19: start 7808.000000, end 8314.479000
Metadata:
title : Chapter 20
Chapter #0.20: start 8314.479000, end 8945.920000
Metadata:
title : Chapter 23
Chapter #0.21: start 8945.920000, end 9349.840000
Metadata:
title : Chapter 24
Chapter #0.22: start 9349.840000, end 9738.239000
Metadata:
title : Chapter 25
Stream #0:0(chi): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x692
[SAR 1:1 DAR 320:173], q=-1--1, 25 tbn, 25 tbc (default)
Stream #0:1(chi): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo,
s16, 128 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libfaac)
Press [q] to stop, [?] for help
[Parsed_ass_0 @ 0x80ae2e7a0] Neither PlayResX nor PlayResY defined.
Assuming 384x288
fontconfig: Selected font is not the requested one: 'AR PL KaitiM GB' !=
'Arial's
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0xB8 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] fontconfig: Selected font is not the requested
one: 'Bitstream Vera Sans' != 'Arial'
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
Glyph 0x2B2 not found, selecting one more font for (Arial, 80,
0)te=1219.0kbits/s
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x2B2 not found, selecting one more font
for (Arial, 80, 0)
Glyph 0x53A not found, selecting one more font for (Arial, 80,
0)te=1204.4kbits/s
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
Glyph 0x53A not found, selecting one more font for (Arial, 80,
0)te=1182.4kbits/s
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
Glyph 0x53A not found, selecting one more font for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
[Parsed_ass_0 @ 0x80ae2e7a0] Glyph 0x53A not found, selecting one more font
for (Arial, 80, 0)
frame= 1460 fps= 74 q=-1.0 Lsize= 8781kB time=00:00:59.39
bitrate=1211.2kbits/s
video:8410kB audio:330kB subtitle:0 global headers:0kB muxing overhead
0.472094%
[libx264 @ 0x80ae63c20] frame I:25 Avg QP:18.78 size: 22697
[libx264 @ 0x80ae63c20] frame P:1024 Avg QP:22.67 size: 6808
[libx264 @ 0x80ae63c20] frame B:411 Avg QP:23.42 size: 2610
[libx264 @ 0x80ae63c20] consecutive B-frames: 44.3% 54.1% 1.0% 0.5%
[libx264 @ 0x80ae63c20] mb I I16..4: 20.5% 72.1% 7.4%
[libx264 @ 0x80ae63c20] mb P I16..4: 1.3% 3.2% 0.1% P16..4: 41.3% 5.2% 4.5%
0.0% 0.0% skip:44.4%
[libx264 @ 0x80ae63c20] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 44.1% 0.8% 0.1%
direct: 0.8% skip:54.2% L0:42.2% L1:56.7% BI: 1.1%
[libx264 @ 0x80ae63c20] 8x8 transform intra:70.0% inter:89.8%
[libx264 @ 0x80ae63c20] coded y,uvDC,uvAC intra: 40.8% 43.9% 5.3% inter:
11.9% 17.4% 0.1%
[libx264 @ 0x80ae63c20] i16 v,h,dc,p: 50% 16% 7% 27%
[libx264 @ 0x80ae63c20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 12% 42% 4% 5% 6%
5% 4% 4%
[libx264 @ 0x80ae63c20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 15% 27% 5% 6% 5%
4% 3% 2%
[libx264 @ 0x80ae63c20] i8c dc,h,v,p: 64% 18% 17% 2%
[libx264 @ 0x80ae63c20] Weighted P-Frames: Y:8.5% UV:2.1%
[libx264 @ 0x80ae63c20] ref P L0: 61.3% 11.0% 17.2% 9.6% 0.8%
[libx264 @ 0x80ae63c20] ref B L0: 79.2% 20.7% 0.1%
[libx264 @ 0x80ae63c20] ref B L1: 99.9% 0.1%
[libx264 @ 0x80ae63c20] kb/s:1179.61
Received signal 2: terminating.
More information about the ffmpeg-user
mailing list