[FFmpeg-trac] #3310(undetermined:new): Missing Font cache messages when using libass?

FFmpeg trac at avcodec.org
Wed Jan 15 13:16:23 CET 2014


#3310: Missing Font cache messages when using libass?
-------------------------------------+-------------------------------------
             Reporter:  DeadSix27    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
  libass,fonts,fontcache,cache,stuck,bug,intended|  Reproduced by developer:  0
  feature?                           |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I'm wondering, is it a bug or intended, that ffmpeg does not tell you when
 it's renewing the font-cache (or whatever it does), when I define a new
 font-folder or add new fonts.
 ffmpeg stucks (seemlinly, due to not saying anything)
 "scans the fonts" as I assume.. and continues with my encode.

 Full debug output (note the "----" marked line, thats where it stucks):
 {{{
 >ffmpeg -i "test.mkv" -ss 00:50.600 -t  0:01:29.1 -map_chapters -1 -map
 0:0 -map 0:1 -map 0:3 -c:v libx264 -crf 22 -g 5 -keyint_min 1 -c:a
 libfdk_aac -b:a 160k -c:v libx264 -b:v 2200k -r 24 -s 1280x720 -maxrate
 1800k -minrate 1300k -bufsize 600k -sn -vf "ass=test.ass" out.mp4

 ffmpeg version N-59697-gfb8f5d0 Copyright (c) 2000-2014 the FFmpeg
 developers  built on Jan  9 2014 10:53:35 with gcc 4.8.1 (GCC)
 configuration: --arch=x86_64 --target-os=mingw32 --cross-
 prefix=/home/hagen/ffs/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
 --pkg-config=pkg-co
 nfig --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid
 --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp
 --enable-li
 bvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg
 --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus
 --disable-w32t
 hreads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc
 --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB
 --enable-libopen
 core-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-
 libschroedinger --enable-libvpx --enable-libilbc
 --prefix=/home/hagen/ffs/sandb
 ox/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-static --disable-shared
 --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo
 --ena
 ble-libbluray --enable-iconv --enable-libtwolame --extra-
 cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-
 libmodplug --extra-libs
 =-lstdc++ --extra-libs=-lpng --enable-libvidstab --extra-cflags= --extra-
 cflags= --enable-nonfree --enable-libfdk-aac --enable-libfaac --enable-
 runtim
 e-cpudetect
   libavutil      52. 62.100 / 52. 62.100
   libavcodec     55. 47.100 / 55. 47.100
   libavformat    55. 22.102 / 55. 22.102
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     4.  0.103 /  4.  0.103
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 [matroska,webm @ 0000000003e6f380] Could not find codec parameters for
 stream 13 (Attachment: none): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [matroska,webm @ 0000000003e6f380] Could not find codec parameters for
 stream 18 (Attachment: none): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 Input #0, matroska,webm, from 'test.mkv':
   Metadata:
     encoder         : libebml v1.2.1 + libmatroska v1.1.1
     creation_time   : 2012-08-14 02:03:30
   Duration: 00:23:09.06, start: 0.000000, bitrate: 6427 kb/s
     Stream #0:0: Video: h264 (High 10), yuv420p10le, 1920x1080 [SAR 1:1
 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
     Stream #0:1: Audio: flac, 48000 Hz, stereo, s16 (default)
 File 'out.mp4' already exists. Overwrite ? [y/N] y
 [Parsed_ass_0 @ 0000000006a21da0] Added subtitle file: 'test.ass' (16
 styles, 29 events)
 [libx264 @ 000000000687ea20] using SAR=1/1
 [libx264 @ 000000000687ea20] using cpu capabilities: MMX2 SSE2Fast LZCNT
 [libx264 @ 000000000687ea20] profile High, level 3.1
 [libx264 @ 000000000687ea20] 264 - core 138 r2363 c628e3b - H.264/MPEG-4
 AVC codec - Copyleft 2003-2013 - 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 dead
 zone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 lookahead_threads=1
 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
 constrained_in
 tra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1
 open_gop=0 weightp=2 keyint=5 keyint_min=1 scenecut=40 intra_refresh=0
 rc_lookahead=
 8 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
 vbv_maxrate=1800 vbv_bufsize=600 crf_max=0.0 nal_hrd=none ip_ratio=1.40
 aq=1:1.00
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf55.22.102
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2200 kb/s, 12288 tbn, 24 tbc
 (default)

     Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000
 Hz, stereo, s16, 160 kb/s (default)
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> libx264)
   Stream #0:1 -> #0:1 (flac -> libfdk_aac)

   -------(STUCKS HERE FOR AS LONG IT NEEDS TO DO WHATEVER IT DOES)-------

 Press [q] to stop, [?] for help
 frame= 2139 fps= 25 q=-1.0 Lsize=   19456kB time=00:01:29.10
 bitrate=1788.6kbits/s dup=3 drop=0
 video:17653kB audio:1741kB subtitle:0 global headers:0kB muxing overhead
 0.319541%
 [libx264 @ 000000000687ea20] frame I:482   Avg QP:26.93  size: 24856
 [libx264 @ 000000000687ea20] frame P:998   Avg QP:29.89  size:  5100
 [libx264 @ 000000000687ea20] frame B:659   Avg QP:28.72  size:  1526
 [libx264 @ 000000000687ea20] consecutive B-frames: 50.6% 22.6%  7.2% 19.6%
 [libx264 @ 000000000687ea20] mb I  I16..4: 25.2% 60.9% 13.9%
 [libx264 @ 000000000687ea20] mb P  I16..4:  5.8% 10.1%  0.5%  P16..4:
 23.9%  3.8%  2.2%  0.0%  0.0%    skip:53.7%
 [libx264 @ 000000000687ea20] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:
 28.6%  0.8%  0.1%  direct: 0.2%  skip:70.1%  L0:37.0% L1:62.2% BI: 0.9%
 [libx264 @ 000000000687ea20] 8x8 transform intra:61.0% inter:91.1%
 [libx264 @ 000000000687ea20] coded y,uvDC,uvAC intra: 37.2% 49.2% 14.9%
 inter: 4.4% 6.7% 0.1%
 [libx264 @ 000000000687ea20] i16 v,h,dc,p: 28% 34%  6% 32%
 [libx264 @ 000000000687ea20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 18% 23%
 7%  6%  6%  7%  6%  6%
 [libx264 @ 000000000687ea20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 26% 14%
 6%  7%  6%  6%  5%  3%
 [libx264 @ 000000000687ea20] i8c dc,h,v,p: 62% 19% 14%  5%
 [libx264 @ 000000000687ea20] Weighted P-Frames: Y:2.7% UV:1.9%
 [libx264 @ 000000000687ea20] ref P L0: 80.9%  7.7%  9.4%  1.9%  0.1%
 [libx264 @ 000000000687ea20] ref B L0: 98.2%  1.8%
 [libx264 @ 000000000687ea20] ref B L1: 98.5%  1.5%
 [libx264 @ 000000000687ea20] kb/s:1622.49
 }}}.

 Reproduce it by defining a font folder in fonts config add some fonts and
 encode a video while using the ass filter.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3310>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list