[FFmpeg-user] Bug report: Can't burn Chinese subtitle into the video

littlebat dashing.meng at gmail.com
Tue Mar 19 11:20:31 CET 2013


Bug report: Can't burn Chinese subtitle into the video

According to the ffmpeg wiki page "How to burn subtitles into the video" : http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20burn%20subtitles%20into%20the%20video , I try to burn Chinese subtitle into video with latest ffmpeg command line below:

/opt/ffmpeggit/bin/ffmpeg -i cant_burn_chinese_subtitle.mkv -filter_complex '[0:v][0:s:1]overlay[v]' -map [v] -map 0:a output.mkv

But no subtitle be burned into result video "output.mkv". I tried burning French subtitle in the input file successfully.

I have uploaded input video file "cant_burn_chinese_subtitle.mkv" and this readme file "cant_burn_chinese_subtitle.txt" into : ftp://upload.ffmpeg.org/incoming

The detail console output:
 
user at debian:~$ /opt/ffmpeggit/bin/ffmpeg -i cant_burn_chinese_subtitle.mkv -filter_complex '[0:v][0:s:1]overlay[v]' -map [v] -map 0:a output.mkv
ffmpeg version N-51059-gfbd3ee9 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 18 2013 17:53:12 with gcc 4.4.5 (Debian 4.4.5-8)
  configuration: --prefix=/opt/ffmpeggit --enable-static --disable-shared --enable-gpl --enable-version3 --enable-swscale --enable-postproc --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --extra-cflags=-I/opt/custom/include --extra-ldflags=-L/opt/custom/lib
  libavutil      52. 19.101 / 52. 19.101
  libavcodec     55.  1.100 / 55.  1.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 47.103 /  3. 47.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'cant_burn_chinese_subtitle.mkv':
  Metadata:
    ENCODER         : Lavf55.0.100
  Duration: 00:00:13.15, start: 0.000000, bitrate: 2254 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 720x480, SAR 1:1 DAR 3:2, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Stream #0:2(fre): Subtitle: dvd_subtitle (default)
    Stream #0:3(chi): Subtitle: dvd_subtitle
    Stream #0:4(chi): Subtitle: dvd_subtitle
[libx264 @ 0xa2155e0] using SAR=1/1
[libx264 @ 0xa2155e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ SlowAtom
[libx264 @ 0xa2155e0] profile High, level 3.0
[libx264 @ 0xa2155e0] 264 - core 129 r36057 0a9132b - 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=3 lookahead_threads=1 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, matroska, to 'output.mkv':
  Metadata:
    encoder         : Lavf55.0.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 720x480 [SAR 1:1 DAR 3:2], q=-1--1, 1k tbn, 29.97 tbc
    Stream #0:1: Audio: vorbis (oV[0][0] / 0x566F), 48000 Hz, 5.1(side), fltp (default)
Stream mapping:
  Stream #0:0 (h264) -> overlay:main (graph 0)
  Stream #0:3 (dvdsub) -> overlay:overlay (graph 0)
  overlay (graph 0) -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (dca -> libvorbis)
Press [q] to stop, [?] for help
frame=    8 fps=0.0 q=0.0 size=       8kB time=00:00:00.54 bitrate= 118.2kbits/sframe=   17 fps= 17 q=0.0 size=       8kB time=00:00:00.83 bitrate=  76.5kbits/sframe=   26 fps= 17 q=0.0 size=       8kB time=00:00:01.13 bitrate=  56.2kbits/sframe=   35 fps= 17 q=0.0 size=       8kB time=00:00:01.45 bitrate=  44.0kbits/sframe=   44 fps= 17 q=0.0 size=       8kB time=00:00:01.75 bitrate=  36.4kbits/sframe=   46 fps= 14 q=0.0 size=       8kB time=00:00:01.82 bitrate=  35.1kbits/sframe=   49 fps= 13 q=29.0 size=      40kB time=00:00:01.92 bitrate= 169.3kbits/frame=   52 fps= 12 q=29.0 size=      40kB time=00:00:02.00 bitrate= 162.3kbits/frame=   55 fps= 11 q=29.0 size=      72kB time=00:00:02.11 bitrate= 277.6kbits/frame=   58 fps= 11 q=29.0 size=      72kB time=00:00:02.20 bitrate= 266.8kbits/frame=   61 fps=9.9 q=29.0 size=      72kB time=00:00:02.31 bitrate= 254.6kbits/frame=   65 fps=9.5 q=29.0 size=     104kB time=00:00:02.50 bitrate= 339.9kbits/frame=   69 fps=9.1 q=29.0 size=     136kB time=00:00:02.59 bitrate= 428.7kbits/frame=   73 fps=8.8 q=29.0 size=     136kB time=00:00:02.77 bitrate= 400.9kbits/frame=   77 fps=8.5 q=29.0 size=     168kB time=00:00:02.84 bitrate= 483.2kbits/frame=   81 fps=8.4 q=29.0 size=     168kB time=00:00:02.97 bitrate= 462.4kbits/frame=   83 fps=8.2 q=29.0 size=     168kB time=00:00:03.07 bitrate= 447.8kbits/frame=   87 fps=8.0 q=29.0 size=     200kB time=00:00:03.17 bitrate= 515.4kbits/frame=   91 fps=7.8 q=29.0 size=     232kB time=00:00:03.31 bitrate= 573.5kbits/frame=   94 fps=7.7 q=29.0 size=     232kB time=00:00:03.41 bitrate= 555.9kbits/frame=   97 fps=7.6 q=29.0 size=     232kB time=00:00:03.52 bitrate= 539.2kbits/frame=  101 fps=7.5 q=29.0 size=     264kB time=00:00:03.65 bitrate= 591.6kbits/frame=  104 fps=7.5 q=29.0 size=     264kB time=00:00:03.82 bitrate= 565.4kbits/frame=  107 fps=7.4 q=29.0 size=     296kB time=00:00:03.85 bitrate= 627.9kbits/frame=  110 fps=7.4 q=29.0 size=     296kB time=00:00:03.94 bitrate= 614.1kbits/frame=  112 fps=7.2 q=29.0 size=     296kB time=00:00:04.03 bitrate= 601.1kbits/frame=  115 fps=7.2 q=29.0 size=     328kB time=00:00:04.11 bitrate= 652.3kbits/frame=  117 fps=7.0 q=29.0 size=     328kB time=00:00:04.17 bitrate= 642.9kbits/frame=  121 fps=7.0 q=29.0 size=     328kB time=00:00:04.30 bitrate= 623.3kbits/frame=  124 fps=6.9 q=29.0 size=     360kB time=00:00:04.41 bitrate= 668.1kbits/frame=  126 fps=6.8 q=29.0 size=     392kB time=00:00:04.47 bitrate= 716.8kbits/frame=  130 fps=6.8 q=29.0 size=     392kB time=00:00:04.60 bitrate= 697.3kbits/frame=  132 fps=6.7 q=29.0 size=     424kB time=00:00:04.66 bitrate= 743.7kbits/frame=  136 fps=6.7 q=29.0 size=     424kB time=00:00:04.82 bitrate= 720.0kbits/frame=  139 fps=6.6 q=29.0 size=     456kB time=00:00:04.90 bitrate= 760.8kbits/frame=  142 fps=6.6 q=29.0 size=     456kB time=00:00:05.01 bitrate= 744.9kbits/frame=  145 fps=6.5 q=29.0 size=     488kB time=00:00:05.11 bitrate= 780.8kbits/frame=  149 fps=6.5 q=29.0 size=     488kB time=00:00:05.24 bitrate= 761.3kbits/frame=  152 fps=6.5 q=29.0 size=     488kB time=00:00:05.35 bitrate= 746.2kbits/frame=  155 fps=6.5 q=29.0 size=     520kB time=00:00:05.45 bitrate= 780.3kbits/frame=  158 fps=6.4 q=29.0 size=     520kB time=00:00:05.56 bitrate= 765.3kbits/frame=  160 fps=6.4 q=29.0 size=     552kB time=00:00:05.63 bitrate= 802.2kbits/frame=  163 fps=6.3 q=29.0 size=     552kB time=00:00:05.72 bitrate= 790.3kbits/frame=  167 fps=6.3 q=29.0 size=     584kB time=00:00:05.85 bitrate= 817.4kbits/frame=  171 fps=6.3 q=29.0 size=     616kB time=00:00:05.97 bitrate= 843.7kbits/frame=  174 fps=6.3 q=29.0 size=     616kB time=00:00:06.08 bitrate= 829.2kbits/frame=  177 fps=6.2 q=29.0 size=     648kB time=00:00:06.18 bitrate= 858.7kbits/frame=  181 fps=6.2 q=29.0 size=     648kB time=00:00:06.31 bitrate= 841.0kbits/frame=  185 fps=6.2 q=29.0 size=     680kB time=00:00:06.46 bitrate= 862.1kbits/frame=  189 fps=6.2 q=29.0 size=     680kB time=00:00:06.58 bitrate= 845.6kbits/frame=  192 fps=6.1 q=29.0 size=     712kB time=00:00:06.69 bitrate= 871.4kbits/frame=  196 fps=6.1 q=29.0 size=     744kB time=00:00:06.81 bitrate= 894.5kbits/frame=  199 fps=6.1 q=29.0 size=     747kB time=00:00:06.91 bitrate= 884.9kbits/frame=  201 fps=6.1 q=29.0 size=     779kB time=00:00:06.98 bitrate= 914.2kbits/frame=  203 fps=6.0 q=29.0 size=     779kB time=00:00:07.04 bitrate= 906.4kbits/frame=  205 fps=5.9 q=29.0 size=     779kB time=00:00:07.12 bitrate= 895.7kbits/frame=  207 fps=5.9 q=29.0 size=     779kB time=00:00:07.19 bitrate= 887.5kbits/frame=  209 fps=5.8 q=29.0 size=     811kB time=00:00:07.25 bitrate= 915.7kbits/frame=  211 fps=5.8 q=29.0 size=     811kB time=00:00:07.35 bitrate= 903.5kbits/frame=  215 fps=5.8 q=29.0 size=     843kB time=00:00:07.45 bitrate= 926.5kbits/frame=  219 fps=5.7 q=29.0 size=     843kB time=00:00:07.58 bitrate= 910.6kbits/frame=  223 fps=5.7 q=29.0 size=     875kB time=00:00:07.71 bitrate= 929.7kbits/frame=  226 fps=5.7 q=29.0 size=     907kB time=00:00:07.82 bitrate= 950.1kbits/frame=  229 fps=5.7 q=29.0 size=     907kB time=00:00:07.92 bitrate= 937.5kbits/frame=  231 fps=5.7 q=29.0 size=     907kB time=00:00:07.99 bitrate= 930.2kbits/frame=  235 fps=5.7 q=29.0 size=     939kB time=00:00:08.16 bitrate= 942.1kbits/frame=  239 fps=5.7 q=29.0 size=     971kB time=00:00:08.25 bitrate= 964.6kbits/frame=  242 fps=5.7 q=29.0 size=     971kB time=00:00:08.38 bitrate= 949.6kbits/frame=  245 fps=5.7 q=29.0 size=    1003kB time=00:00:08.46 bitrate= 971.0kbits/frame=  248 fps=5.7 q=29.0 size=    1003kB time=00:00:08.55 bitrate= 961.1kbits/frame=  251 fps=5.7 q=29.0 size=    1035kB time=00:00:08.65 bitrate= 979.8kbits/frame=  254 fps=5.7 q=29.0 size=    1035kB time=00:00:08.75 bitrate= 968.4kbits/frame=  257 fps=5.6 q=29.0 size=    1067kB time=00:00:08.85 bitrate= 987.5kbits/frame=  261 fps=5.6 q=29.0 size=    1099kB time=00:00:08.98 bitrate=1002.4kbits/frame=  265 fps=5.7 q=29.0 size=    1099kB time=00:00:09.11 bitrate= 988.5kbits/frame=  267 fps=5.6 q=29.0 size=    1099kB time=00:00:09.17 bitrate= 981.5kbits/frame=  270 fps=5.6 q=29.0 size=    1131kB time=00:00:09.28 bitrate= 998.6kbits/frame=  273 fps=5.6 q=29.0 size=    1131kB time=00:00:09.38 bitrate= 987.2kbits/frame=  276 fps=5.6 q=29.0 size=    1163kB time=00:00:09.49 bitrate=1003.5kbits/frame=  279 fps=5.6 q=29.0 size=    1163kB time=00:00:09.57 bitrate= 995.0kbits/frame=  283 fps=5.6 q=29.0 size=    1195kB time=00:00:09.72 bitrate=1007.1kbits/frame=  286 fps=5.6 q=29.0 size=    1195kB time=00:00:09.83 bitrate= 995.8kbits/frame=  288 fps=5.6 q=29.0 size=    1227kB time=00:00:09.89 bitrate=1016.2kbits/frame=  293 fps=5.6 q=29.0 size=    1259kB time=00:00:09.93 bitrate=1038.0kbits/frame=  293 fps=4.9 q=-2.0 Lsize=    1513kB time=00:00:10.01 bitrate=1238.4kbits/s    
video:1223kB audio:276kB subtitle:0 global headers:7kB muxing overhead 0.432517%
[libx264 @ 0xa2155e0] frame I:2     Avg QP:21.90  size: 26330
[libx264 @ 0xa2155e0] frame P:144   Avg QP:23.02  size:  6984
[libx264 @ 0xa2155e0] frame B:147   Avg QP:25.55  size:  1316
[libx264 @ 0xa2155e0] consecutive B-frames:  3.1% 86.7% 10.2%  0.0%
[libx264 @ 0xa2155e0] mb I  I16..4: 22.0% 70.6%  7.4%
[libx264 @ 0xa2155e0] mb P  I16..4:  0.5%  3.8%  0.0%  P16..4: 46.3% 11.7%  8.6%  0.0%  0.0%    skip:29.1%
[libx264 @ 0xa2155e0] mb B  I16..4:  0.0%  0.3%  0.0%  B16..8: 44.9%  1.3%  0.3%  direct: 0.9%  skip:52.4%  L0:36.8% L1:56.7% BI: 6.5%
[libx264 @ 0xa2155e0] 8x8 transform intra:84.4% inter:79.6%
[libx264 @ 0xa2155e0] coded y,uvDC,uvAC intra: 56.1% 54.1% 9.2% inter: 15.1% 20.2% 0.1%
[libx264 @ 0xa2155e0] i16 v,h,dc,p: 42% 22% 27%  8%
[libx264 @ 0xa2155e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 10% 67%  2%  2%  2%  3%  2%  3%
[libx264 @ 0xa2155e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 19% 17%  7% 10%  8%  9%  6%  8%
[libx264 @ 0xa2155e0] i8c dc,h,v,p: 59% 18% 21%  3%
[libx264 @ 0xa2155e0] Weighted P-Frames: Y:0.7% UV:0.0%
[libx264 @ 0xa2155e0] ref P L0: 62.7% 14.4% 14.4%  8.5%  0.1%
[libx264 @ 0xa2155e0] ref B L0: 88.1% 11.6%  0.3%
[libx264 @ 0xa2155e0] ref B L1: 99.2%  0.8%
[libx264 @ 0xa2155e0] kb/s:1017.42


More information about the ffmpeg-user mailing list