终于完工! ffmpeg 视频滤镜:添加文本-drawtext

滤镜描述

drawtext

官网链接 =》 FFmpeg Filters Documentation 

这个滤镜可以给视频添加上文本,可以给文本加边框、颜色、阴影。注意不是字幕功能,因为这个滤镜不能精准的控制开始和结束的时间。

滤镜使用

参数
   fontfile          <string>     ..FV....... set font file
   text              <string>     ..FV.....T. set text
   textfile          <string>     ..FV....... set text file
   fontcolor         <color>      ..FV.....T. set foreground color (default "black")
   fontcolor_expr    <string>     ..FV....... set foreground color expression (default "")
   boxcolor          <color>      ..FV.....T. set box color (default "white")
   bordercolor       <color>      ..FV.....T. set border color (default "black")
   shadowcolor       <color>      ..FV.....T. set shadow color (default "black")
   box               <boolean>    ..FV.....T. set box (default false)
   boxborderw        <string>     ..FV.....T. set box borders width (default "0")
   line_spacing      <int>        ..FV.....T. set line spacing in pixels (from INT_MIN to INT_MAX) (default 0)
   fontsize          <string>     ..FV.....T. set font size
   text_align        <flags>      ..FV.....T. set text alignment (default 0)
     left                         ..FV.....T.
     L                            ..FV.....T.
     right                        ..FV.....T.
     R                            ..FV.....T.
     center                       ..FV.....T.
     C                            ..FV.....T.
     top                          ..FV.....T.
     T                            ..FV.....T.
     bottom                       ..FV.....T.
     B                            ..FV.....T.
     middle                       ..FV.....T.
     M                            ..FV.....T.
   x                 <string>     ..FV.....T. set x expression (default "0")
   y                 <string>     ..FV.....T. set y expression (default "0")
   boxw              <int>        ..FV.....T. set box width (from 0 to INT_MAX) (default 0)
   boxh              <int>        ..FV.....T. set box height (from 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值