[FFmpeg-trac] #3302(avfilter:open): Cannot draw opaque text on transparent frame

FFmpeg trac at avcodec.org
Tue Mar 8 15:02:07 CET 2016

#3302: Cannot draw opaque text on transparent frame
             Reporter:  Krieger     |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:  drawtext    |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |

Comment (by andrey.utkin):

 Thanks for this hardcore workaround, but it is not flawless because when
 you overlay the resulting text over light color, you have "dirt" at the
 edge of letters because of hinting. See

 ffmpeg -f lavfi -i color=color=0x000000 at 1.0,format=yuva444p -vf
 "drawtext=fontfile=/usr/share/fonts/corefonts/cour.ttf:x=100:y=100:fontsize=40:text=Hello:fontcolor=0xFFFFFF at 1.0,colorchannelmixer=rr=0:rg=0:rb=0:ra=0:gr=0:gg=0:gb=0:ga=0:br=0:bg=0:bb=0:ba=0:ar=2.0:ag=2.0:ab=2.0:aa=0,drawtext=fontfile=/usr/share/fonts/corefonts/cour.ttf:text=Hello:fontcolor=yellow:fontsize=40:x=100:y=100"
 -vframes 1 -f image2 /tmp/out.png

Ticket URL: <https://trac.ffmpeg.org/ticket/3302#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list