plugins
生产器 Producer
生产器:qtext

生产器:qtext

  • 目录

插件信息

title: Qt 标题生成器
media types: Video
description: 一个标题生成器,使用 Qt 框架渲染文本。
version: 5
creator:
copyright: Meltytech, LLC
license: LGPLv2.1

说明

qtext 接受带 ".txt" 扩展名的文件名。如果文件名以 "+" 开头,qtext 生产器会把该文件名解释为文本。这是在 melt 命令中内嵌标题的简写方式。对于 MLT XML,建议把标题文本内嵌在 "text" 属性值中。 qtext 内置缩放功能。它会把最初渲染的标题重新缩放为消费器所请求的尺寸。因此,如果这样请求,它会失去宽高比,需要由消费器请求一个能保持图像宽高比例的合适宽度和高度。

参数

resource

title: 文件
description:

包含待渲染文本的文本文件。
该文本文件的内容用于初始化 "text" 参数的值。

type: string
readonly: no
required: no
widget: fileopen

text

title: 文本
description: 待渲染的文本字符串。
type: string
readonly: no
required: no
widget: textbox

fgcolour

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

bgcolour

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

align

title: 段落对齐
description: left、center、right
type: string
readonly: no
required: no
default: left
widget: combo

pad

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

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: 字体的样式,例如依字体族不同可以是 "italic" 或 "narrow"
type: string
readonly: no
required: no
default: normal
widget: combo

weight

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

encoding

title: 编码
description: "text" 参数的文本编码类型。
type: string
readonly: no
required: no
default: UTF-8
widget: combo

force_aspect_ratio

title: 样本宽高比
description: 可选地覆盖被(错误)检测出的宽高比
type: float
readonly: no
required: no

meta.media.width

title: 实际宽度
description: 渲染图像原始的、未缩放的宽度。
type: integer
readonly: yes
required: no

meta.media.height

title: 实际高度
description: 渲染图像原始的、未缩放的高度。
type: integer
readonly: yes
required: no

width

title: 宽度
description: 最近一次请求的缩放后图像宽度。
type: integer
readonly: yes
required: no

height

title: 高度
description: 最近一次请求的缩放后图像高度。
type: integer
readonly: yes
required: no