Opened 4 years ago

Last modified 3 years ago

#3571 open defect

Drawtext fontcolor alpha not working with border (border and glyph would need to be combined before drawing them)

Reported by: nickj Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: drawtext alpha
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description

Using drawtext filter, the fontcolor alpha channel goes grey instead of see through

Uploaded file example is here - http://www.datafilehost.com/d/b44e215d

buffer=width=640:height=480:pix_fmt=1:time_base=333333/10000000:pixel_aspect=0/1 [primary]; [primary] drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='Hello world!!!':fontcolor=white@0.2:fontsize=128:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) [drawtext]; [drawtext] buffersink

Attachments (1)

white@0.2isgrey.PNG (166.8 KB) - added by nickj 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by nickj

comment:1 Changed 4 years ago by nickj

  • Cc sam@smarmyco.com added

comment:2 Changed 4 years ago by nickj

  • Cc sam@smarmyco.com removed

comment:3 Changed 4 years ago by cehoyos

  • Keywords fontcolor removed

Please provide your failing command line (the command line that produced an output file that didn't match your expectations) together with the complete, uncut console output to make this a valid ticket.

Could this be related to ticket #3302?

comment:4 Changed 4 years ago by nickj

Dear cehoyos,

Thank you very much for your interest in my ticket and my apologies for not getting that information up the first time.

Yes I do believe it is related to #3302 however I am unsure if this is a duplicate of the same issue, however we are experiencing problems with the same functionality.

Below is my output

ffmpeg -y -v debug -f dshow -i "video=Webcam C110" -pix_fmt rgba -filter_complex "drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=white@0.1:fontsize=24:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) " drawtext.mp4
ffmpeg version N-62460-gef818d8 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 14 2014 22:05:25 with gcc 4.8.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libc
aca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr -
-enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      52. 76.100 / 52. 76.100
  libavcodec     55. 58.103 / 55. 58.103
  libavformat    55. 37.100 / 55. 37.100
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  4.100 /  4.  4.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'dshow'.
Reading option '-i' ... matched as input file with argument 'video=Webcam C110'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'rgba'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=
white@0.1:fontsize=24:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) '.
Reading option 'drawtext.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option v (set logging level) with argument debug.
Applying option filter_complex (create a complex filtergraph) with argument drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=white@0.1:fontsize=24:fontfile='/WINDOWS/F
ONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) .
Successfully parsed a group of options.
Parsing a group of options: input file video=Webcam C110.
Applying option f (force format) with argument dshow.
Successfully parsed a group of options.
Opening an input file: video=Webcam C110.
[dshow @ 004e8500] All info found
Input #0, dshow, from 'video=Webcam C110':
  Duration: N/A, start: 140009.394000, bitrate: N/A
    Stream #0:0, 1, 1/10000000: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 333333/10000000, 30 tbr, 10000k tbn, 30 tbc
Successfully opened the file.
Parsing a group of options: output file drawtext.mp4.
Applying option pix_fmt (set pixel format) with argument rgba.
Successfully parsed a group of options.
Opening an output file: drawtext.mp4.
detected 8 logical cores
[Parsed_drawtext_0 @ 004ee9a0] Setting 'borderw' to value '1'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'box' to value '1'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'boxcolor' to value 'black@0.5'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'bordercolor' to value 'black'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'text' to value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'fontcolor' to value 'white@0.1'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'fontsize' to value '24'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'fontfile' to value '/WINDOWS/FONTS/Arial.ttf'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'x' to value '(w-tw)/2'
[Parsed_drawtext_0 @ 004ee9a0] Setting 'y' to value 'h-(2*lh)'
[graph 0 input from stream 0:0 @ 004ee2c0] Setting 'video_size' to value '640x480'
[graph 0 input from stream 0:0 @ 004ee2c0] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 0:0 @ 004ee2c0] Setting 'time_base' to value '1/10000000'
[graph 0 input from stream 0:0 @ 004ee2c0] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 004ee2c0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 004ee2c0] Setting 'frame_rate' to value '10000000/333333'
[graph 0 input from stream 0:0 @ 004ee2c0] w:640 h:480 pixfmt:yuyv422 tb:1/10000000 fr:10000000/333333 sar:0/1 sws_param:flags=2
Incompatible pixel format 'rgba' for codec 'libx264', auto-selecting format 'yuv444p'
[format @ 01d76a40] compat: called with args=[yuv444p]
[format @ 01d76a40] Setting 'pix_fmts' to value 'yuv444p'
Successfully opened the file.
[auto-inserted scaler 0 @ 004e8020] w:iw h:ih flags:'bilinear' interl:0
[Parsed_drawtext_0 @ 004ee9a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_drawtext_0'
[AVFilterGraph @ 004ee220] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 004e8020] w:640 h:480 fmt:yuyv422 sar:0/1 -> w:640 h:480 fmt:yuv444p sar:0/1 flags:0x2
[libx264 @ 01d75820] using mv_range_thread = 24
[libx264 @ 01d75820] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 01d75820] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264 @ 01d75820] 264 - core 142 r2409 d6b4e63 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=4 threads=12 lookahead_threads=2 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 we
ightb=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 'drawtext.mp4':
  Metadata:
    encoder         : Lavf55.37.100
    Stream #0:0, 0, 1/10000000: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 640x480, 333333/10000000, q=-1--1, 10000k tbn, 30 tbc
Stream mapping:
  Stream #0:0 (rawvideo) -> drawtext
  drawtext -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[Parsed_drawtext_0 @ 004ee9a0] n:0 t:0.000000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:1 t:0.032000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:2 t:0.064000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:3 t:0.096000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:4 t:0.143000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:5 t:0.175000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:6 t:0.207000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:7 t:0.239000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:8 t:0.271000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:9 t:0.319000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:10 t:0.368000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:11 t:0.399000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:12 t:0.447000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:13 t:0.479000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:14 t:0.527000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:15 t:0.575000 text_w:726 text_h:23 x:-43 y:434op=0
[Parsed_drawtext_0 @ 004ee9a0] n:16 t:0.607000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:17 t:0.655000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:18 t:0.687000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:19 t:0.735000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:20 t:0.783000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:21 t:0.815000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:22 t:0.863000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:23 t:0.895000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:24 t:0.943000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:25 t:0.991000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:26 t:1.023000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:27 t:1.071000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:28 t:1.103000 text_w:726 text_h:23 x:-43 y:434op=0
[Parsed_drawtext_0 @ 004ee9a0] n:29 t:1.151000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:30 t:1.199000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:31 t:1.231000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:32 t:1.279000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:33 t:1.311000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:34 t:1.359000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:35 t:1.407000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:36 t:1.439000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:37 t:1.487000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:38 t:1.519000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:39 t:1.567000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:40 t:1.615000 text_w:726 text_h:23 x:-43 y:434op=0
[Parsed_drawtext_0 @ 004ee9a0] n:41 t:1.647000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:42 t:1.695000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:43 t:1.743000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:44 t:1.775000 text_w:726 text_h:23 x:-43 y:434
[Parsed_drawtext_0 @ 004ee9a0] n:45 t:1.823000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[Parsed_drawtext_0 @ 004ee9a0] n:46 t:1.855000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=   0 QP=25.15 NAL=3 Slice:I Poc:0   I:1200 P:0    SKIP:0    size=15112 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:47 t:1.903000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=   1 QP=25.24 NAL=2 Slice:P Poc:8   I:306  P:633  SKIP:261  size=6212 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:48 t:1.951000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=   2 QP=26.75 NAL=2 Slice:B Poc:4   I:15   P:448  SKIP:725  size=1755 bytes
[libx264 @ 01d75820] frame=   3 QP=27.22 NAL=0 Slice:B Poc:2   I:0    P:320  SKIP:874  size=1060 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:49 t:1.983000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=   4 QP=27.16 NAL=0 Slice:B Poc:6   I:1    P:259  SKIP:938  size=839 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:50 t:2.031000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=   5 QP=24.86 NAL=2 Slice:P Poc:14  I:172  P:815  SKIP:213  size=7442 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:51 t:2.063000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=   6 QP=27.33 NAL=2 Slice:B Poc:12  I:68   P:220  SKIP:906  size=1431 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:52 t:2.111000 text_w:726 text_h:23 x:-43 y:434/s dup=11 drop=0
[libx264 @ 01d75820] frame=   7 QP=27.87 NAL=0 Slice:B Poc:10  I:20   P:351  SKIP:823  size=1472 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:53 t:2.159000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=   8 QP=24.87 NAL=2 Slice:P Poc:20  I:156  P:864  SKIP:180  size=7786 bytes
[libx264 @ 01d75820] frame=   9 QP=25.00 NAL=2 Slice:B Poc:18  I:0    P:19   SKIP:1181 size=57 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:54 t:2.191000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  10 QP=27.50 NAL=0 Slice:B Poc:16  I:10   P:99   SKIP:1088 size=540 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:55 t:2.239000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  11 QP=25.33 NAL=2 Slice:P Poc:28  I:197  P:865  SKIP:138  size=8762 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:56 t:2.271000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  12 QP=27.15 NAL=2 Slice:B Poc:24  I:84   P:281  SKIP:820  size=1991 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:57 t:2.319000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=  13 QP=28.12 NAL=0 Slice:B Poc:22  I:35   P:339  SKIP:820  size=1325 bytes
[libx264 @ 01d75820] frame=  14 QP=27.52 NAL=0 Slice:B Poc:26  I:7    P:131  SKIP:1061 size=563 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:58 t:2.368000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  15 QP=25.56 NAL=2 Slice:P Poc:34  I:163  P:895  SKIP:142  size=8457 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:59 t:2.400000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  16 QP=27.44 NAL=2 Slice:B Poc:32  I:36   P:181  SKIP:982  size=1104 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:60 t:2.448000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  17 QP=28.37 NAL=0 Slice:B Poc:30  I:8    P:264  SKIP:928  size=695 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:61 t:2.480000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  18 QP=25.58 NAL=2 Slice:P Poc:40  I:123  P:900  SKIP:177  size=7755 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:62 t:2.527000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=  19 QP=28.03 NAL=2 Slice:B Poc:38  I:0    P:26   SKIP:1174 size=90 bytes
[libx264 @ 01d75820] frame=  20 QP=28.66 NAL=0 Slice:B Poc:36  I:9    P:195  SKIP:988  size=769 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:63 t:2.576000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  21 QP=25.31 NAL=2 Slice:P Poc:46  I:115  P:957  SKIP:128  size=8512 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:64 t:2.608000 text_w:726 text_h:23 x:-43 y:434/s dup=14 drop=0
[libx264 @ 01d75820] frame=  22 QP=28.19 NAL=2 Slice:B Poc:44  I:48   P:285  SKIP:864  size=1655 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:65 t:2.655000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=  23 QP=28.15 NAL=0 Slice:B Poc:42  I:2    P:186  SKIP:1008 size=647 bytes
[libx264 @ 01d75820] frame=  24 QP=25.41 NAL=2 Slice:P Poc:54  I:72   P:926  SKIP:202  size=7376 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:66 t:2.688000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  25 QP=26.16 NAL=2 Slice:B Poc:50  I:11   P:372  SKIP:816  size=2141 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:67 t:2.735000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  26 QP=27.65 NAL=0 Slice:B Poc:48  I:42   P:244  SKIP:911  size=1451 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:68 t:2.783000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  27 QP=28.79 NAL=0 Slice:B Poc:52  I:0    P:256  SKIP:944  size=489 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:69 t:2.815000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  28 QP=25.45 NAL=2 Slice:P Poc:62  I:95   P:969  SKIP:136  size=7434 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:70 t:2.863000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=  29 QP=26.33 NAL=2 Slice:B Poc:58  I:16   P:324  SKIP:851  size=1995 bytes
[libx264 @ 01d75820] frame=  30 QP=28.22 NAL=0 Slice:B Poc:56  I:7    P:170  SKIP:1021 size=675 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:71 t:2.895000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  31 QP=28.65 NAL=0 Slice:B Poc:60  I:1    P:233  SKIP:966  size=506 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:72 t:2.943000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  32 QP=25.53 NAL=2 Slice:P Poc:70  I:93   P:995  SKIP:112  size=6610 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:73 t:2.991000 text_w:726 text_h:23 x:-43 y:434
*** 1 dup!
[libx264 @ 01d75820] frame=  33 QP=28.03 NAL=2 Slice:B Poc:66  I:2    P:307  SKIP:890  size=1185 bytes
[libx264 @ 01d75820] frame=  34 QP=28.50 NAL=0 Slice:B Poc:64  I:2    P:285  SKIP:911  size=865 bytes
[Parsed_drawtext_0 @ 004ee9a0] n:74 t:3.023000 text_w:726 text_h:23 x:-43 y:434
[libx264 @ 01d75820] frame=  35 QP=26.63 NAL=0 Slice:B Poc:68  I:0    P:45   SKIP:1155 size=79 bytes
[libx264 @ 01d75820] frame=  36 QP=25.76 NAL=2 Slice:P Poc:78  I:80   P:913  SKIP:207  size=6175 bytes
[libx264 @ 01d75820] frame=  37 QP=27.48 NAL=2 Slice:B Poc:74  I:1    P:202  SKIP:995  size=814 bytes
[libx264 @ 01d75820] frame=  38 QP=28.18 NAL=0 Slice:B Poc:72  I:8    P:361  SKIP:831  size=1442 bytes
[libx264 @ 01d75820] frame=  39 QP=28.08 NAL=0 Slice:B Poc:76  I:10   P:283  SKIP:905  size=1147 bytes
[libx264 @ 01d75820] frame=  40 QP=24.46 NAL=2 Slice:P Poc:80  I:116  P:1012 SKIP:72   size=8122 bytes
[libx264 @ 01d75820] frame=  41 QP=25.25 NAL=2 Slice:P Poc:82  I:0    P:271  SKIP:929  size=934 bytes
[libx264 @ 01d75820] frame=  42 QP=25.59 NAL=2 Slice:P Poc:90  I:88   P:958  SKIP:154  size=6719 bytes
[libx264 @ 01d75820] frame=  43 QP=28.10 NAL=2 Slice:B Poc:86  I:2    P:206  SKIP:988  size=819 bytes
[libx264 @ 01d75820] frame=  44 QP=28.12 NAL=0 Slice:B Poc:84  I:9    P:387  SKIP:803  size=1263 bytes
[libx264 @ 01d75820] frame=  45 QP=26.64 NAL=0 Slice:B Poc:88  I:0    P:76   SKIP:1124 size=112 bytes
[libx264 @ 01d75820] frame=  46 QP=25.71 NAL=2 Slice:P Poc:98  I:49   P:1016 SKIP:135  size=5893 bytes
[libx264 @ 01d75820] frame=  47 QP=27.56 NAL=2 Slice:B Poc:94  I:26   P:391  SKIP:780  size=1814 bytes
[libx264 @ 01d75820] frame=  48 QP=27.98 NAL=0 Slice:B Poc:92  I:6    P:170  SKIP:1023 size=659 bytes
[libx264 @ 01d75820] frame=  49 QP=27.93 NAL=0 Slice:B Poc:96  I:5    P:185  SKIP:1009 size=835 bytes
[libx264 @ 01d75820] frame=  50 QP=24.46 NAL=2 Slice:P Poc:100 I:130  P:981  SKIP:89   size=8367 bytes
[libx264 @ 01d75820] frame=  51 QP=24.97 NAL=2 Slice:P Poc:102 I:0    P:255  SKIP:945  size=882 bytes
[libx264 @ 01d75820] frame=  52 QP=25.42 NAL=2 Slice:P Poc:110 I:119  P:946  SKIP:135  size=7061 bytes
[libx264 @ 01d75820] frame=  53 QP=27.94 NAL=2 Slice:B Poc:106 I:13   P:391  SKIP:793  size=1519 bytes
[libx264 @ 01d75820] frame=  54 QP=27.86 NAL=0 Slice:B Poc:104 I:9    P:271  SKIP:920  size=973 bytes
[libx264 @ 01d75820] frame=  55 QP=25.82 NAL=0 Slice:B Poc:108 I:0    P:57   SKIP:1143 size=79 bytes
[libx264 @ 01d75820] frame=  56 QP=25.59 NAL=2 Slice:P Poc:118 I:43   P:1004 SKIP:153  size=5798 bytes
[libx264 @ 01d75820] frame=  57 QP=27.91 NAL=2 Slice:B Poc:114 I:2    P:287  SKIP:911  size=1015 bytes
[libx264 @ 01d75820] frame=  58 QP=28.17 NAL=0 Slice:B Poc:112 I:20   P:325  SKIP:853  size=1418 bytes
[libx264 @ 01d75820] frame=  59 QP=26.68 NAL=0 Slice:B Poc:116 I:0    P:107  SKIP:1093 size=130 bytes
[libx264 @ 01d75820] frame=  60 QP=25.82 NAL=2 Slice:P Poc:126 I:115  P:902  SKIP:183  size=5956 bytes
[libx264 @ 01d75820] frame=  61 QP=27.61 NAL=2 Slice:B Poc:122 I:3    P:332  SKIP:861  size=1335 bytes
[libx264 @ 01d75820] frame=  62 QP=28.30 NAL=0 Slice:B Poc:120 I:4    P:356  SKIP:840  size=1448 bytes
[libx264 @ 01d75820] frame=  63 QP=27.97 NAL=0 Slice:B Poc:124 I:0    P:257  SKIP:943  size=878 bytes
[libx264 @ 01d75820] frame=  64 QP=24.42 NAL=2 Slice:P Poc:128 I:118  P:971  SKIP:111  size=7968 bytes
[libx264 @ 01d75820] frame=  65 QP=25.50 NAL=2 Slice:P Poc:130 I:0    P:195  SKIP:1005 size=652 bytes
[libx264 @ 01d75820] frame=  66 QP=24.77 NAL=2 Slice:P Poc:138 I:94   P:956  SKIP:150  size=7057 bytes
[libx264 @ 01d75820] frame=  67 QP=27.62 NAL=2 Slice:B Poc:134 I:6    P:335  SKIP:858  size=1364 bytes
[libx264 @ 01d75820] frame=  68 QP=28.22 NAL=0 Slice:B Poc:132 I:1    P:306  SKIP:888  size=967 bytes
[libx264 @ 01d75820] frame=  69 QP=28.51 NAL=0 Slice:B Poc:136 I:1    P:410  SKIP:787  size=1513 bytes
[libx264 @ 01d75820] frame=  70 QP=25.78 NAL=2 Slice:P Poc:140 I:0    P:260  SKIP:940  size=755 bytes
[dshow @ 004e8500] real-time buffer[Webcam C110] too full (80% of size: 3041280)! frame dropped!
[libx264 @ 01d75820] frame=  71 QP=26.03 NAL=2 Slice:P Poc:148 I:57   P:946  SKIP:197  size=5345 bytes
[libx264 @ 01d75820] frame=  72 QP=27.47 NAL=2 Slice:B Poc:144 I:13   P:564  SKIP:623  size=2487 bytes
[libx264 @ 01d75820] frame=  73 QP=27.95 NAL=0 Slice:B Poc:142 I:7    P:286  SKIP:907  size=946 bytes
[libx264 @ 01d75820] frame=  74 QP=28.18 NAL=0 Slice:B Poc:146 I:2    P:242  SKIP:954  size=781 bytes
[libx264 @ 01d75820] frame=  75 QP=24.77 NAL=2 Slice:P Poc:150 I:91   P:1001 SKIP:108  size=6901 bytes
[libx264 @ 01d75820] frame=  76 QP=25.68 NAL=2 Slice:P Poc:152 I:0    P:280  SKIP:920  size=642 bytes
[dshow @ 004e8500] real-time buffer[Webcam C110] too full (80% of size: 3041280)! frame dropped!
[libx264 @ 01d75820] frame=  77 QP=25.96 NAL=2 Slice:P Poc:160 I:73   P:960  SKIP:167  size=5410 bytes
[libx264 @ 01d75820] frame=  78 QP=28.02 NAL=2 Slice:B Poc:156 I:3    P:224  SKIP:971  size=829 bytes
[libx264 @ 01d75820] frame=  79 QP=28.03 NAL=0 Slice:B Poc:154 I:14   P:290  SKIP:895  size=1271 bytes
[libx264 @ 01d75820] frame=  80 QP=26.43 NAL=0 Slice:B Poc:158 I:0    P:41   SKIP:1159 size=75 bytes
[libx264 @ 01d75820] frame=  81 QP=26.54 NAL=2 Slice:P Poc:168 I:35   P:889  SKIP:276  size=4296 bytes
[libx264 @ 01d75820] frame=  82 QP=27.64 NAL=2 Slice:B Poc:164 I:2    P:398  SKIP:797  size=1542 bytes
[libx264 @ 01d75820] frame=  83 QP=28.27 NAL=0 Slice:B Poc:162 I:13   P:319  SKIP:868  size=1225 bytes
[libx264 @ 01d75820] frame=  84 QP=28.37 NAL=0 Slice:B Poc:166 I:3    P:205  SKIP:992  size=775 bytes
[libx264 @ 01d75820] frame=  85 QP=25.23 NAL=2 Slice:P Poc:170 I:104  P:922  SKIP:174  size=6185 bytes
[libx264 @ 01d75820] frame=  86 QP=26.45 NAL=2 Slice:P Poc:172 I:1    P:195  SKIP:1004 size=531 bytes
[libx264 @ 01d75820] frame=  87 QP=27.74 NAL=2 Slice:P Poc:180 I:88   P:774  SKIP:338  size=3481 bytes
[libx264 @ 01d75820] frame=  88 QP=27.89 NAL=2 Slice:B Poc:176 I:6    P:314  SKIP:878  size=1198 bytes
[libx264 @ 01d75820] frame=  89 QP=27.76 NAL=0 Slice:B Poc:174 I:11   P:184  SKIP:1005 size=778 bytes
[libx264 @ 01d75820] frame=  90 QP=27.71 NAL=0 Slice:B Poc:178 I:0    P:306  SKIP:893  size=408 bytes
[libx264 @ 01d75820] frame=  91 QP=28.37 NAL=2 Slice:P Poc:182 I:73   P:756  SKIP:371  size=2850 bytes
frame=   92 fps= 28 q=-1.0 Lsize=     255kB time=00:00:02.99 bitrate= 696.7kbits/s dup=17 drop=0
video:253kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.731787%
Input file #0 (video=Webcam C110):
  Input stream #0:0 (video): 75 packets read (46080000 bytes); 75 frames decoded;
  Total: 75 packets (46080000 bytes) demuxed
Output file #0 (drawtext.mp4):
  Output stream #0:0 (video): 92 frames encoded; 92 packets muxed (259365 bytes);
  Total: 92 packets (259365 bytes) muxed
[libx264 @ 01d75820] frame I:1     Avg QP:25.15  size: 15112
[libx264 @ 01d75820] frame P:33    Avg QP:25.56  size:  5586
[libx264 @ 01d75820] frame B:58    Avg QP:27.69  size:  1021
[libx264 @ 01d75820] consecutive B-frames: 14.1%  0.0% 16.3% 69.6%
[libx264 @ 01d75820] mb I  I16..4: 21.6% 58.3% 20.2%
[libx264 @ 01d75820] mb P  I16..4:  4.6%  2.8%  0.1%  P16..4: 46.6% 12.8%  6.7%  0.0%  0.0%    skip:26.4%
[libx264 @ 01d75820] mb B  I16..4:  0.6%  0.3%  0.0%  B16..8: 19.5%  0.3%  0.1%  direct: 1.7%  skip:77.5%  L0:42.8% L1:53.0% BI: 4.2%
[libx264 @ 01d75820] 8x8 transform intra:41.4% inter:73.9%
[libx264 @ 01d75820] coded y,u,v intra: 23.6% 23.8% 21.2% inter: 8.2% 14.5% 11.3%
[libx264 @ 01d75820] i16 v,h,dc,p: 29% 16% 12% 43%
[libx264 @ 01d75820] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 17% 37%  3%  5%  6%  4%  3%  7%
[libx264 @ 01d75820] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 33% 12%  3%  4%  8%  4%  2%  5%
[libx264 @ 01d75820] Weighted P-Frames: Y:21.2% UV:3.0%
[libx264 @ 01d75820] ref P L0: 46.5%  7.9% 24.7% 20.2%  0.6%
[libx264 @ 01d75820] ref B L0: 61.7% 20.7% 17.6%
[libx264 @ 01d75820] ref B L1: 81.5% 18.5%
[libx264 @ 01d75820] kb/s:674.81
[dshow @ 004e8500] real-time buffer[Webcam C110] too full (101% of size: 3041280)! frame dropped!
75 frames successfully decoded, 0 decoding errors
[AVIOContext @ 01d7fba0] Statistics: 34 seeks, 118 writeouts
^CTerminate batch job (Y/N)?

If you require anything else to reproduce this problem please let me know and I will be only too happy to assist you.

Thank you for your time and work on this great project.

Last edited 4 years ago by cehoyos (previous) (diff)

comment:5 Changed 4 years ago by cehoyos

  • Version changed from unspecified to git-master

Is the problem only reproducible with dshow input or also with -f lavfi -i testsrc?
(I am sure you understand that most developers cannot test dshow input.)

comment:6 Changed 4 years ago by nickj

Yes I understand, that was too OS specific! Thanks for teaching me that trick and the quick reply!

Yes I can confirm that that issue occurs with that input -

ffmpeg -y -v debug -f lavfi  -i testsrc -pix_fmt rgba -filter_complex "drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=white@0.8:fontsize=24:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) " drawtext-2.mp4
C:\Users\Nick\Documents\Visual Studio 2008\Projects\TprVideoEngine2-15\TprVideoEngine2-15\Debug>ffmpeg -y -v debug -f lavfi  -i testsrc -pix_fmt rgba -filter_complex "drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=white@0.8:fontsize=24:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) " drawtext-2.mp4
ffmpeg version N-62460-gef818d8 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 14 2014 22:05:25 with gcc 4.8.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 76.100 / 52. 76.100
  libavcodec     55. 58.103 / 55. 58.103
  libavformat    55. 37.100 / 55. 37.100
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  4.100 /  4.  4.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input file with argument 'testsrc'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'rgba'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=white@0.8:fontsize=24:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) '.
Reading option 'drawtext-2.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option v (set logging level) with argument debug.
Applying option filter_complex (create a complex filtergraph) with argument drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz':fontcolor=white@0.8:fontsize=24:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) .
Successfully parsed a group of options.
Parsing a group of options: input file testsrc.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: testsrc.
detected 8 logical cores
[Parsed_testsrc_0 @ 006caa80] size:320x240 rate:25/1 duration:-1.000000 sar:1/1
[AVFilterGraph @ 006c8c00] query_formats: 2 queried, 1 merged, 0 already done, 0 delayed
[lavfi @ 006c85c0] All info found
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 1, 1/25: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 1/25, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file drawtext-2.mp4.
Applying option pix_fmt (set pixel format) with argument rgba.
Successfully parsed a group of options.
Opening an output file: drawtext-2.mp4.
[Parsed_drawtext_0 @ 005c1020] Setting 'borderw' to value '1'
[Parsed_drawtext_0 @ 005c1020] Setting 'box' to value '1'
[Parsed_drawtext_0 @ 005c1020] Setting 'boxcolor' to value 'black@0.5'
[Parsed_drawtext_0 @ 005c1020] Setting 'bordercolor' to value 'black'
[Parsed_drawtext_0 @ 005c1020] Setting 'text' to value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
[Parsed_drawtext_0 @ 005c1020] Setting 'fontcolor' to value 'white@0.8'
[Parsed_drawtext_0 @ 005c1020] Setting 'fontsize' to value '24'
[Parsed_drawtext_0 @ 005c1020] Setting 'fontfile' to value '/WINDOWS/FONTS/Arial.ttf'
[Parsed_drawtext_0 @ 005c1020] Setting 'x' to value '(w-tw)/2'
[Parsed_drawtext_0 @ 005c1020] Setting 'y' to value 'h-(2*lh)'
[graph 0 input from stream 0:0 @ 005c16a0] Setting 'video_size' to value '320x240'
[graph 0 input from stream 0:0 @ 005c16a0] Setting 'pix_fmt' to value '2'
[graph 0 input from stream 0:0 @ 005c16a0] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 005c16a0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 005c16a0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 005c16a0] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 005c16a0] w:320 h:240 pixfmt:rgb24 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
Incompatible pixel format 'rgba' for codec 'libx264', auto-selecting format 'yuv444p'
[format @ 005c1da0] compat: called with args=[yuv444p]
[format @ 005c1da0] Setting 'pix_fmts' to value 'yuv444p'
Successfully opened the file.
[auto-inserted scaler 0 @ 005c12a0] w:iw h:ih flags:'bilinear' interl:0
[format @ 005c1da0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_drawtext_0' and the filter 'format'
[AVFilterGraph @ 006cdb20] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 005c12a0] w:320 h:240 fmt:rgb24 sar:1/1 -> w:320 h:240 fmt:yuv444p sar:1/1 flags:0x2
[libx264 @ 00603920] using mv_range_thread = 24
[libx264 @ 00603920] using SAR=1/1
[libx264 @ 00603920] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 00603920] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit
[libx264 @ 00603920] 264 - core 142 r2409 d6b4e63 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=4 threads=12 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, mp4, to 'drawtext-2.mp4':
  Metadata:
    encoder         : Lavf55.37.100
    Stream #0:0, 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 320x240 [SAR 1:1 DAR 4:3], 1/25, q=-1--1, 12800 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (rawvideo) -> drawtext
  drawtext -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:0 t:0.000000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:1 t:0.040000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:2 t:0.080000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:3 t:0.120000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:4 t:0.160000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:5 t:0.200000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:6 t:0.240000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:7 t:0.280000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:8 t:0.320000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:9 t:0.360000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:10 t:0.400000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:11 t:0.440000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:12 t:0.480000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:13 t:0.520000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:14 t:0.560000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:15 t:0.600000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:16 t:0.640000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:17 t:0.680000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:18 t:0.720000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:19 t:0.760000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:20 t:0.800000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:21 t:0.840000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:22 t:0.880000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:23 t:0.920000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:24 t:0.960000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:25 t:1.000000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:26 t:1.040000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:27 t:1.080000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:28 t:1.120000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:29 t:1.160000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:30 t:1.200000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:31 t:1.240000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:32 t:1.280000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:33 t:1.320000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:34 t:1.360000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:35 t:1.400000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:36 t:1.440000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:37 t:1.480000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:38 t:1.520000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:39 t:1.560000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:40 t:1.600000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:41 t:1.640000 text_w:726 text_h:23 x:-203 y:194
[Parsed_drawtext_0 @ 005c1020] Copying data in avfilter.
[Parsed_drawtext_0 @ 005c1020] n:42 t:1.680000 text_w:726 text_h:23 x:-203 y:194
[libx264 @ 00603920] frame=   0 QP=18.66 NAL=3 Slice:I Poc:0   I:300  P:0    SKIP:0    size=7577 bytes
[libx264 @ 00603920] frame=   1 QP=23.95 NAL=2 Slice:P Poc:8   I:0    P:71   SKIP:229  size=1148 bytes
[libx264 @ 00603920] frame=   2 QP=12.00 NAL=2 Slice:B Poc:4   I:0    P:18   SKIP:282  size=41 bytes
[libx264 @ 00603920] frame=   3 QP=13.00 NAL=0 Slice:B Poc:2   I:0    P:12   SKIP:288  size=31 bytes
[libx264 @ 00603920] frame=   4 QP=13.00 NAL=0 Slice:B Poc:6   I:0    P:2    SKIP:298  size=18 bytes
[libx264 @ 00603920] frame=   5 QP=15.08 NAL=2 Slice:P Poc:16  I:0    P:62   SKIP:238  size=1228 bytes
[libx264 @ 00603920] frame=   6 QP=12.00 NAL=2 Slice:B Poc:12  I:0    P:7    SKIP:293  size=30 bytes
[libx264 @ 00603920] frame=   7 QP=13.00 NAL=0 Slice:B Poc:10  I:0    P:10   SKIP:290  size=27 bytes
[libx264 @ 00603920] frame=   8 QP=13.00 NAL=0 Slice:B Poc:14  I:0    P:4    SKIP:296  size=21 bytes
[libx264 @ 00603920] frame=   9 QP=14.34 NAL=2 Slice:P Poc:18  I:1    P:49   SKIP:250  size=413 bytes
[libx264 @ 00603920] frame=  10 QP=14.35 NAL=2 Slice:P Poc:20  I:0    P:55   SKIP:245  size=509 bytes
[libx264 @ 00603920] frame=  11 QP=14.30 NAL=2 Slice:P Poc:28  I:0    P:60   SKIP:240  size=1626 bytes
[libx264 @ 00603920] frame=  12 QP=12.00 NAL=2 Slice:B Poc:24  I:0    P:7    SKIP:293  size=29 bytes
[libx264 @ 00603920] frame=  13 QP=16.45 NAL=0 Slice:B Poc:22  I:0    P:23   SKIP:277  size=43 bytes
[libx264 @ 00603920] frame=  14 QP=13.00 NAL=0 Slice:B Poc:26  I:0    P:4    SKIP:296  size=22 bytes
[libx264 @ 00603920] frame=  15 QP=13.83 NAL=2 Slice:P Poc:30  I:0    P:49   SKIP:251  size=359 bytes
[libx264 @ 00603920] frame=  16 QP=15.26 NAL=2 Slice:P Poc:38  I:1    P:58   SKIP:241  size=1320 bytes
[libx264 @ 00603920] frame=  17 QP=12.00 NAL=2 Slice:B Poc:34  I:0    P:7    SKIP:293  size=28 bytes
[libx264 @ 00603920] frame=  18 QP=16.15 NAL=0 Slice:B Poc:32  I:0    P:26   SKIP:274  size=43 bytes
[libx264 @ 00603920] frame=  19 QP=13.00 NAL=0 Slice:B Poc:36  I:0    P:4    SKIP:296  size=21 bytes
[libx264 @ 00603920] frame=  20 QP=15.21 NAL=2 Slice:P Poc:40  I:2    P:46   SKIP:252  size=337 bytes
[libx264 @ 00603920] frame=  21 QP=15.24 NAL=2 Slice:P Poc:42  I:2    P:51   SKIP:247  size=478 bytes
[libx264 @ 00603920] frame=  22 QP=15.12 NAL=2 Slice:P Poc:44  I:0    P:53   SKIP:247  size=531 bytes
[libx264 @ 00603920] frame=  23 QP=15.21 NAL=2 Slice:P Poc:46  I:0    P:53   SKIP:247  size=507 bytes
[libx264 @ 00603920] frame=  24 QP=14.60 NAL=2 Slice:P Poc:48  I:1    P:50   SKIP:249  size=439 bytes
[libx264 @ 00603920] frame=  25 QP=17.18 NAL=2 Slice:P Poc:50  I:9    P:55   SKIP:236  size=640 bytes
[libx264 @ 00603920] frame=  26 QP=13.71 NAL=2 Slice:P Poc:52  I:1    P:52   SKIP:247  size=491 bytes
[libx264 @ 00603920] frame=  27 QP=13.98 NAL=2 Slice:P Poc:60  I:5    P:58   SKIP:237  size=1092 bytes
[libx264 @ 00603920] frame=  28 QP=12.00 NAL=2 Slice:B Poc:56  I:0    P:2    SKIP:298  size=22 bytes
[libx264 @ 00603920] frame=  29 QP=16.15 NAL=0 Slice:B Poc:54  I:0    P:21   SKIP:279  size=39 bytes
[libx264 @ 00603920] frame=  30 QP=13.00 NAL=0 Slice:B Poc:58  I:0    P:1    SKIP:299  size=16 bytes
[libx264 @ 00603920] frame=  31 QP=14.88 NAL=2 Slice:P Poc:68  I:1    P:57   SKIP:242  size=1009 bytes
[libx264 @ 00603920] frame=  32 QP=12.00 NAL=2 Slice:B Poc:64  I:0    P:4    SKIP:296  size=25 bytes
[libx264 @ 00603920] frame=  33 QP=16.64 NAL=0 Slice:B Poc:62  I:0    P:13   SKIP:287  size=39 bytes
[libx264 @ 00603920] frame=  34 QP=13.00 NAL=0 Slice:B Poc:66  I:0    P:3    SKIP:297  size=20 bytes
[libx264 @ 00603920] frame=  35 QP=15.92 NAL=2 Slice:P Poc:76  I:4    P:56   SKIP:240  size=971 bytes
[libx264 @ 00603920] frame=  36 QP=12.00 NAL=2 Slice:B Poc:72  I:0    P:6    SKIP:294  size=28 bytes
[libx264 @ 00603920] frame=  37 QP=16.59 NAL=0 Slice:B Poc:70  I:0    P:19   SKIP:281  size=37 bytes
[libx264 @ 00603920] frame=  38 QP=13.00 NAL=0 Slice:B Poc:74  I:0    P:0    SKIP:300  size=14 bytes
[libx264 @ 00603920] frame=  39 QP=18.59 NAL=2 Slice:P Poc:84  I:2    P:49   SKIP:249  size=513 bytes
[libx264 @ 00603920] frame=  40 QP=12.00 NAL=2 Slice:B Poc:80  I:0    P:3    SKIP:296  size=29 bytes
[libx264 @ 00603920] frame=  41 QP=13.00 NAL=0 Slice:B Poc:78  I:0    P:5    SKIP:295  size=22 bytes
[libx264 @ 00603920] frame=  42 QP=13.00 NAL=0 Slice:B Poc:82  I:0    P:2    SKIP:298  size=18 bytes
frame=   43 fps=0.0 q=-1.0 Lsize=      23kB time=00:00:01.64 bitrate= 116.3kbits/s
video:22kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.749778%
Input file #0 (testsrc):
  Input stream #0:0 (video): 43 packets read (9907200 bytes); 43 frames decoded;
  Total: 43 packets (9907200 bytes) demuxed
Output file #0 (drawtext-2.mp4):
  Output stream #0:0 (video): 43 frames encoded; 43 packets muxed (22540 bytes);
  Total: 43 packets (22540 bytes) muxed
[libx264 @ 00603920] frame I:1     Avg QP:18.66  size:  7577
[libx264 @ 00603920] frame P:18    Avg QP:15.60  size:   756
[libx264 @ 00603920] frame B:24    Avg QP:13.37  size:    28
[libx264 @ 00603920] consecutive B-frames: 25.6%  0.0%  0.0% 74.4%
[libx264 @ 00603920] mb I  I16..4: 33.3% 32.0% 34.7%
[libx264 @ 00603920] mb P  I16..4:  0.2%  0.1%  0.2%  P16..4: 14.3%  1.9%  2.0%  0.0%  0.0%    skip:81.2%
[libx264 @ 00603920] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  2.8%  0.0%  0.0%  direct: 0.0%  skip:97.2%  L0:18.9% L1:81.1% BI: 0.0%
[libx264 @ 00603920] 8x8 transform intra:31.3% inter:52.2%
[libx264 @ 00603920] coded y,u,v intra: 20.1% 17.8% 16.9% inter: 2.6% 2.9% 2.5%
[libx264 @ 00603920] i16 v,h,dc,p: 88%  8%  4%  0%
[libx264 @ 00603920] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 13% 47%  1%  0%  0%  0%  0%  0%
[libx264 @ 00603920] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 20% 18%  3%  3%  4%  2%  4%  2%
[libx264 @ 00603920] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00603920] ref P L0: 69.9% 20.6%  7.7%  1.9%
[libx264 @ 00603920] ref B L0: 74.4%  7.7% 17.9%
[libx264 @ 00603920] ref B L1: 98.8%  1.2%
[libx264 @ 00603920] kb/s:101.63
43 frames successfully decoded, 0 decoding errors
[AVIOContext @ 006c9140] Statistics: 34 seeks, 69 writeouts
Received signal 2: terminating.
Terminate batch job (Y/N)?
Last edited 4 years ago by cehoyos (previous) (diff)

comment:7 Changed 3 years ago by michael

  • Analyzed by developer set
  • Summary changed from Drawtext fontcolor alpha not working to Drawtext fontcolor alpha not working with border (border and glyph would need to be combined before drawing them)

This is caused by the way the border is drawn, if no border is drawn it works

comment:8 Changed 3 years ago by michael

  • Status changed from new to open
Note: See TracTickets for help on using tickets.