plugins
滤镜 Filter
滤镜:dynamictext
  • 目录

插件信息

title: 动态文本
media types: Video
description: 将动态文本叠加到视频上
version: 6
creator:
copyright: Meltytech, LLC
license: LGPLv2.1

说明

动态文本滤镜会在待叠加的文本中查找关键字,并逐帧替换这些关键字。

参数

argument

title: 动态文本
description:

要叠加的文本。可以包含用 "#" 包围的关键字。
关键字包括:
  * #createdate#    - 对文件创建日期的最佳推测
  * #smpte_df#      - 该帧的 SMPTE 掉帧时间码
  * #smpte_ndf#     - 该帧的 SMPTE 非掉帧时间码
  * #timecode#      - 与 #smpte_df# 相同
  * #frame#         - 该帧的帧号
  * #frame+1#       - 该帧的帧号,从 1 开始而非 0
  * #filedate#      - 文件的修改日期(GMT)
  * #localfiledate# - 文件的修改日期(本地)
  * #localtime#     - 当前系统日期和时间
  * #resource#      - 产生该帧的生产器的 resource
时间码类关键字基于该帧的帧率和位置。
基于时间的关键字可以包含一个 strftime 格式字符串来自定义
输出,只要你在关键字与格式字符串之间使用除 "#" 之外的分隔符,
并且关键字写在前面。例如,
"#localtime %I:%M:%S %p#" 以 12 小时制只显示时间。
关键字也可以是任意帧属性(例如 #meta.media.0.codec.frame_rate#)
# 可以用 "\" 转义。

type: string
readonly: no
required: yes
default: #timecode#
widget: text

geometry

title: 几何位置
description: 一组 X/Y 坐标,用于调整文本位置。
type: rect
readonly: no
required: no
default: 0%/0%:100%x100%:100

family

title: 字体族
description: 字体类型。
type: string
readonly: no
required: no
default: Sans
widget: combo

size

title: 字号
description: 字体大小,以像素计。
type: integer
readonly: no
required: no
default: 48
widget: spinner

style

title: 字体样式
description: 字体的样式。
type: string
readonly: no
required: no
default: normal
widget: combo
values:

  • normal
  • italic

weight

title: 字体粗细
description: 字体的粗细(weight)。
type: integer
readonly: no
required: no
minimum: 100
maximum: 1000
default: 400
widget: spinner

fgcolour

title: 前景色
description: 颜色值是 RGB 加 alpha 通道的十六进制表示,形式为 0xrrggbbaa。颜色也可以是这些单词:white、black、red、green 或 blue。还可以使用 HTML 风格的颜色值 #rrggbb 或 #aarrggbb。
type: string
readonly: no
required: no
default: 255
widget: color

bgcolour

title: 背景色
description: 颜色值是 RGB 加 alpha 通道的十六进制表示,形式为 0xrrggbbaa。颜色也可以是这些单词:white、black、red、green 或 blue。还可以使用 HTML 风格的颜色值 #rrggbb 或 #aarrggbb。
type: string
readonly: no
required: no
default: 32
widget: color

olcolour

title: 描边颜色
description: 颜色值是 RGB 加 alpha 通道的十六进制表示,形式为 0xrrggbbaa。颜色也可以是这些单词:white、black、red、green 或 blue。还可以使用 HTML 风格的颜色值 #rrggbb 或 #aarrggbb。
type: string
readonly: no
required: no
widget: color

outline

title: 描边宽度
description: 描边的宽度,以像素计。
type: string
readonly: no
required: no
minimum: 0
default: 0
widget: spinner

underline

title: 下划线
description: 为文本应用下划线装饰。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox

strikethrough

title: 删除线
description: 为文本应用删除线装饰。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox

pad

title: 内边距
description: 背景矩形在文本边缘之外扩展的像素数。
type: integer
readonly: no
required: no
default: 0
widget: spinner

halign

title: 水平对齐
description: 设置在几何矩形内的水平对齐方式。
type: string
readonly: no
required: no
default: left
widget: combo
values:

  • left
  • centre
  • right

valign

title: 垂直对齐
description: 设置在几何矩形内的垂直对齐方式。
type: string
readonly: no
required: no
default: top
widget: combo
values:

  • top
  • middle
  • bottom

opacity

title: 不透明度
description: 所有元素的不透明度 - 文本、描边和背景
type: float
readonly: no
required: no
minimum: 0
maximum: 1.0
default: 1.0
widget: slider