plugins
消费器 Consumer
消费器:xml

消费器:xml

插件信息

title: XML
media types: Audio Video
description: 将服务网络序列化为 XML。更多信息见 docs/mlt-xml.txt。
version: 1
creator: Dan Dennedy
copyright: Meltytech, LLC
license: LGPLv2.1

说明

如果你在此消费器所连接的服务上设置一个以 "xml_retain" 开头(且长度超过该前缀)的数据属性,且该数据是一个 mlt_service 指针,那么被指向的服务也会在所连接的服务之前被序列化。例如,这可以用来把一个播放列表连同多轨工程一起保存为一个素材箱(media bin)。你可以通过设置多个属性来序列化多个此类附加服务,每个属性的键都必须以 "xml_retain" 开头且互不相同。

缺陷

  • 多轨与播放列表的任意嵌套未经测试。
  • 如果不存在名为 "id" 的属性,属性 "id" 会生成为“服务类型加数字”的形式,但它无法保证唯一性。

参数

resource

title: 文件
description: 用于存储 XML 的文件名。如果该值不包含句点(即没有以扩展名开头),那么该值会被解释为某个属性的名称,XML 将存入该属性。这使得应用程序可以方便地用该消费器序列化服务网络并在内存中取回 XML。
type: string
readonly: no
required: no
default: stdout
widget: fileopen

all

title: 处理所有帧
description: 没有此选项时,XML 消费器不处理任何帧,只序列化服务网络。但某些滤镜(例如 vid.stab)需要两趟处理,第一趟执行分析并把结果存入某个属性。因此,将该属性设为 1(true)会让消费器先处理所有帧,再序列化输出为 XML。
type: boolean
readonly: no
required: no
default: 0

title

title: 标题
description: 你可以为合成工程指定一个友好名称,某些应用程序会使用它。
type: string
readonly: no
required: no

root

title: 基础路径
description: 如果 XML 中的某个文件名是相对路径,但并非相对于当前 XML 文件所在目录,你可以在此设置它所相对的目录。
type: string
readonly: no
required: no

no_meta

title: 排除 meta 属性
description: 设置此项可禁止输出以 "meta." 为前缀的属性。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox

no_root

title: 不输出 root 属性
description: 设置此项可禁止在根元素上输出 root 属性。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox

time_format

title: 时间格式
description: 以时间码或时钟格式输出基于时间的值。
type: string
readonly: no
required: no
default: frames
widget: dropdown
values:

  • frames
  • smpte_df
  • smpte_ndf
  • smpte
  • timecode
  • clock

store

title: 包含属性前缀
description: 若要保存 MLT 并不了解的其他属性,请提供你所使用的、应用程序专用的属性名前缀。
type: string
readonly: no
required: no

no_profile

title: 不输出 profile 元素
description: 设置此项可禁止输出 profile 元素。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox