plugins
生产器 Producer
生产器:subtitle

生产器:subtitle

插件信息

title: 字幕
media types: Video
description: 生成带字幕叠加的视频帧
version: 3
creator:
copyright: Meltytech, LLC
license: LGPLv2.1

参数

resource

title: 资源
description: 包含 SRT 字幕的文本文件路径
type: string
readonly: no
required: no

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: 字体的粗细(字重)。
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