生产器:pixbuf
- 目录
插件信息
title: GDK-PixBuf
media types:
Video
description: 使用 gdk-pixbuf 把静态图形转换为视频序列的生成器
version: 3
creator: Dan Dennedy
copyright: Meltytech, LLC
license: LGPLv2.1
说明
Pixbuf 内置缩放功能。它会把最初渲染的标题重新缩放为消费器所请求的尺寸。因此,如果这样请求,它会失去宽高比,需要由消费器请求一个能保持图像宽高比例的合适宽度和高度。环境变量 MLT_PIXBUF_PRODUCER_CACHE 可用于覆盖/增加同时使用的已转换图像的缓存数量。
参数
resource
title: 文件
description:
可由某个 gdk-pixbuf 加载器加载的图形文件名。参见 gdk-pixbuf-query-loaders 的输出。
png、jpeg、tiff、pnm 和 xpm 肯定可以工作。
如果文件名中含 "%",则把该文件名交给 sprintf,由计数器生成文件名,
用于多文件/翻页本动画。当数值不连续 >100 时文件序列结束。
如果文件序列并非从计数 100 以内开始,你可以像传递查询字符串参数那样
传递 begin 属性,例如:anim-%04d.png?begin=1000。
如果文件名包含 "/.all.",则在后面附上扩展名,以便从目录中加载所有具有该扩展名的图片。
如果文件名包含字符串 "<svg",那么 pixbuf 会尝试把该文件名作为内联 SVG XML 加载,
这对 melt 命令很方便。如果文件扩展名是 .csv(格式为:picture_filename;ttl),
那么 pixbuf 会从中读取图片及对应的 ttl,这对生成每张图时长不同的幻灯片很方便;
此时主 ttl 属性会被忽略。type: string
readonly: no
required: yes
widget: fileopen
begin
title: 起始编号
description:
使用图像序列时,设置起始编号。
type: integer
readonly: no
required: no
minimum: 0
widget: spinner
ttl
title: 存活时间
description:
在文件序列中每张图片重复多少帧。
type: integer
readonly: no
required: no
minimum: 0
default: 25
widget: spinner
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
force_reload
description:
重新加载文件而不使用其缓存图像。该属性被设为 1 并处理完成后会自动复位。
type: integer
readonly: no
required: no
minimum: 0
maximum: 1
disable_exif
title: 禁用自动旋转
type: boolean
readonly: no
required: no
default: 0
widget: checkbox
force_aspect_ratio
title: 样本宽高比
description:
可选地覆盖被(错误)检测出的宽高比
type: float
readonly: no
required: no
loop
title: 无限循环图像序列
description:
为 1(默认)时循环播放图像序列,为 0 时只播放一次
type: boolean
readonly: no
required: no
default: 1
widget: checkbox
autolength
title: 自动计算长度
description:
是否自动计算图像序列的长度和出点(out point)。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox