plugins
滤镜 Filter
滤镜:audiospectrum

滤镜:audiospectrum

  • 目录

插件信息

title: 音频频谱滤镜
media types: Video
description: 一个音频可视化滤镜,在图像上绘制音频频谱。
version: 3
creator:
copyright: Meltytech, LLC
license: LGPLv2.1

参数

type

title: 图形类型
description: 用于显示频谱的图形类型。
type: string
readonly: no
required: no
default: line
widget: combo
values:

  • line
  • bar

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
animation: yes
minimum: 0
maximum: 20
default: 0
unit: pixels
widget: spinner

angle

title: 角度
description: 要应用到波形的旋转角度。
type: float
readonly: no
required: no
animation: yes
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

mirror

title: 镜像
description: 以矩形中心为轴对频谱做镜像。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox

reverse

title: 反转
description: 绘制数据点时从最高频率开始。
type: boolean
readonly: no
required: no
default: 0
widget: checkbox

tension

title: 线条张力
description: 影响点之间插值曲线的弯曲程度。0.0 = 点之间为直线。1.0 = 点之间为高度弯曲的线。取值 < 0 和 > 1 会使线条产生环圈。仅适用于线形图类型。
type: float
readonly: no
required: no
animation: yes
default: 0.4

gorient

title: 渐变方向
description: 颜色渐变的方向。
type: string
readonly: no
required: no
default: vertical
widget: combo
values:

  • vertical
  • horizontal

segment_gap

title: 分段间隙
description: 各分段之间以像素计的空隙。
type: integer
readonly: no
required: no
animation: yes
minimum: 0
maximum: 100
default: 10
unit: pixels

bands

title: 点数
description: 频谱中要绘制的频带数量。每个频带在图中表现为一个数据点。
type: integer
readonly: no
required: no
animation: yes
default: 31

frequency_low

title: 低频
description: 用于图形的频率范围低端。 motion.
type: integer
readonly: no
required: no
animation: yes
default: 20
unit: Hz

frequency_high

title: 高频
description: 用于图形的频率范围高端。 motion.
type: integer
readonly: no
required: no
animation: yes
default: 20000
unit: Hz

threshold

title: 电平阈值
description: 要使该值生效,频率范围内必须出现的最小声音幅度。 motion.
type: float
readonly: no
required: no
animation: yes
minimum: -100
maximum: 0
default: -30
unit: dB

segments

title: 分段
description: 当图形类型为 "segment" 时要绘制的分段数量。
type: integer
readonly: no
required: no
animation: yes
minimum: 2
maximum: 100
default: 10

window_size

title: 窗口大小
description: FFT 所处理的采样数量。如果 window_size 小于一帧中的采样数,多余的采样将被忽略。如果 window_size 大于一帧中的采样数,将缓冲先前帧的采样以填满窗口。该缓冲以滑动窗口方式执行,从而始终对最近的采样进行变换。
type: integer
readonly: no
required: no
default: 2048