滤镜:audiowaveform
插件信息
title: 音频波形滤镜
media types:
Video
description: 一个音频可视化滤镜,在图像上绘制音频波形。
version: 3
creator:
copyright: Meltytech, LLC
license: LGPLv2.1
参数
bgcolor
title: 背景颜色
description:
应用于整个帧的背景颜色。默认颜色为透明。
颜色值是 RGB 加上 alpha 通道的十六进制表示,形式为 0xrrggbbaa。
颜色也可以用单词表示:white、black、red、green 或 blue。
你也可以使用 HTML 风格的颜色值 #rrggbb 或 #aarrggbb。type: color
readonly: no
required: no
animation: yes
widget: color
color.*
title: 前景色
description:
波形的颜色。
可以使用递增的后缀指定多种颜色,使波形以渐变方式绘制。color.1 是波形的顶部。
随后的颜色会形成朝底部的渐变。
默认情况下,该滤镜定义了一种颜色:
color.1=0xffffffff"
这会产生一个白色波形。
要创建渐变,请定义更多颜色:
color.2=green color.3=0x77777777
颜色值是 RGB 加上 alpha 通道的十六进制表示,形式为 0xrrggbbaa。
颜色也可以用单词表示:white、black、red、green 或 blue。
你也可以使用 HTML 风格的颜色值 #rrggbb 或 #aarrggbb。type: color
readonly: no
required: no
animation: yes
widget: color
thickness
title: 线条粗细
description:
用于绘制波形的线条粗细。
type: integer
readonly: no
required: no
minimum: 0
maximum: 20
default: 0
unit: pixels
widget: spinner
show_channel
title: 音频声道
description:
要绘制的音频声道。
"0" 表示应绘制所有声道。"-1" 表示将所有声道叠加合并为单一波形。type: integer
readonly: no
required: no
animation: yes
minimum: 0
maximum: 20
default: 0
widget: spinner
angle
title: 角度
description:
应用于波形的旋转角度。
type: float
readonly: no
required: no
minimum: 0
maximum: 360
default: 0
widget: spinner
rect
title: 矩形
description:
定义绘制波形所在的矩形。
格式为:"X Y W H"。
除非带有后缀 '%',否则 X、Y、W、H 被视为以像素为单位。type: rect
readonly: no
required: no
animation: yes
default: 0 0 100% 100%
fill
title: 填充
description:
是否填充波形下方的区域。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox
gorient
title: 渐变方向
description:
颜色渐变的方向。
type: string
readonly: no
required: no
default: vertical
widget: combo
values:
- vertical
- horizontal
window
title: 窗口
description:
要在波形中绘制的音频时长(以毫秒计)。如果窗口小于一帧的时长,则使用一帧的时长。如果窗口大于一帧的时长,则会从先前各帧缓冲样本以填满窗口。缓冲以滑动窗口方式进行,因此始终变换的是最新的样本。
type: integer
readonly: no
required: no
default: 0