auto-editor-effects

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Actions & animations

动作与动画

Instead of just cutting, give each section an action with
--when-active
(
-w:1
, loud) and
--when-inactive
(
-w:0
, silent). Defaults:
-w:1 nil
(keep),
-w:0 cut
. Chain actions with commas; they apply in order.
bash
auto-editor video.mp4 -w:0 speed:8            # fast-forward through silence (pitch preserved)
auto-editor video.mp4 -w:0 speed:3,volume:0.5 # speed up AND halve volume of silent parts
-w:0
/
-w:1
are the silent (label 0) and active (label 1) classes. You can define more classes with
--edit:N
/
-e:N
and act on them with
--when:N
/
-w:N
(N = 2–255) — see the auto-editor skill's "Labels" section. Every action below works as the value of any
-w:N
.
不只是剪切,通过
--when-active
(
-w:1
,有声)和
--when-inactive
(
-w:0
,静音)为每个片段指定一个动作。默认值:
-w:1 nil
(保留)、
-w:0 cut
(剪切)。动作之间用逗号串联,按顺序执行。
bash
auto-editor video.mp4 -w:0 speed:8            # fast-forward through silence (pitch preserved)
auto-editor video.mp4 -w:0 speed:3,volume:0.5 # speed up AND halve volume of silent parts
-w:0
/
-w:1
分别是静音(标签 0)和有声(标签 1)类别。你也可以通过
--edit:N
/
-e:N
定义更多类别,并用
--when:N
/
-w:N
(N = 2–255)对其执行操作——参见 auto-editor skill 的“Labels”部分。下面的每个动作都可以作为任意
-w:N
的值。

Actions

动作

ActionWhat it doesForm / range
nil
keep unchanged—
cut
remove section—
speed
time-stretch, pitch preserved
speed:8
,
speed:0.5
varispeed
speed via pitch shift (tape/vinyl)
varispeed:2
(0.2–100)
pitch
shift pitch only, duration preserved
pitch:12
(octave up),
pitch:-7
(−24–24 semitones)
volume
scale volume (1=normal, 0.5=−6dB)
volume:0.2
deesser
reduce sibilance
deesser:intensity[:max[:freq]]
(each 0–1)
tone
wave from a MIDI note (
add:
generator)
add:tone:69
,
add:tone:36:saw
invert
invert pixels—
zoom
zoom factor (1=none)
zoom:2
,
zoom:0.5
(>0–100)
rotate
fixed clockwise rotation, expands so nothing clips
rotate:90
(pair with
--resolution
)
spin
continuous spin
deg/rate
(deg per sec)
spin:0/120
,
spin:90/-45
drawbox
filled rectangle
drawbox:x:y:w:h:color
pos
place an overlay clip
x:y[:scale]
mainly used inside
add
/ v3
add
overlay a layer: every stream the file holds
add:path[:x:y:scale]
bash
auto-editor video.mp4 -w:1 deesser:0.8:0.7:0.4
auto-editor video.mp4 -w:1 rotate:90 --resolution 1080,1920   # landscape → portrait
auto-editor video.mp4 -w:1 drawbox:0:0:1920:200:#000000       # redact a strip
动作作用形式/范围
nil
保持不变—
cut
移除该片段—
speed
时间伸缩,保持音调
speed:8
,
speed:0.5
varispeed
通过变调改变速度(磁带/黑胶效果)
varispeed:2
(0.2–100)
pitch
仅改变音调,时长不变
pitch:12
(升八度),
pitch:-7
(−24–24 半音)
volume
缩放音量(1=正常,0.5=−6dB)
volume:0.2
deesser
减少齿音/嘶声
deesser:intensity[:max[:freq]]
(每个参数 0–1)
tone
用 MIDI 音符生成波形(
add:
生成器)
add:tone:69
,
add:tone:36:saw
invert
反转像素—
zoom
缩放倍数(1=无缩放)
zoom:2
,
zoom:0.5
(>0–100)
rotate
固定顺时针旋转,画布扩展以避免裁剪
rotate:90
(配合
--resolution
使用)
spin
持续旋转
deg/rate
(每秒度数)
spin:0/120
,
spin:90/-45
drawbox
填充矩形
drawbox:x:y:w:h:color
pos
放置叠加片段
x:y[:scale]
主要用在
add
/ v3 内部
add
叠加一层:文件包含的所有流
add:path[:x:y:scale]
bash
auto-editor video.mp4 -w:1 deesser:0.8:0.7:0.4
auto-editor video.mp4 -w:1 rotate:90 --resolution 1080,1920   # landscape → portrait
auto-editor video.mp4 -w:1 drawbox:0:0:1920:200:#000000       # redact a strip

Overlays —
add

叠加层 ——
add

add
is virtual: it adds an overlay layer rather than a per-frame effect. Still images hold for the whole section; PNG alpha is preserved. Omit placement to scale-to-fit and center. Actions chained after an
add
apply to that new overlay, not the base.
add
brings every stream the file holds: a video with sound gets a video layer plus its audio layers (mixed in, not a second stream), an audio-only file adds sound with no picture, an image adds picture with no sound. In place of a file it takes a generator action:
confetti
/
drawbox
paint a video layer,
tone
synthesizes an audio one (so
add:tone
layers stack into a chord).
bash
auto-editor video.mp4 -w:1 add:./logo.png             # centered, fit to canvas
auto-editor video.mp4 -w:1 add:./pip.mp4:900:60:0.25  # PiP in the corner, audio included
auto-editor video.mp4 -w:1 add:./pip.mp4:900:60:0.25,volume:0.3  # ...tucked under the base
auto-editor video.mp4 -w:1 add:./music.mp3,volume:0.4 # background music, no picture added
auto-editor video.mp4 -w:1 add:./logo.png,spin:0/-30  # the logo spins, not the base video
auto-editor song.mp3 -bg white -w:1 add:./cover.png   # audio + image → video
auto-editor video.mp4 -w:1 add:tone:69                # 440 Hz tone over the audio
auto-editor video.mp4 -w:0 nil,add:tone:81            # beep the silence, don't cut it
auto-editor video.mp4 -w:1 add:tone:60,volume:1..0:ease=out  # a plucked, decaying note
auto-editor video.mp4 -w:1 add:tone:36:saw            # buzzy bass (sine|saw|square|triangle)
Overlays appear only where their section is kept, so for silent sections use
-w:0 nil,add:...
(keep + overlay). With
--set-action
the range is kept automatically.
add
是虚拟动作:它添加的是一个叠加层,而不是逐帧效果。静态图片会在整个片段期间保持,PNG alpha 透明度会被保留。省略位置参数时按比例缩放并居中。在
add
之后串联的动作只会作用于这个新叠加层,而不是底层画面。
add
会带入文件包含的所有流:带声音的视频会得到一个视频层加其音频层(混入其中,不是第二个流);纯音频文件只增加声音,不增加画面;图片只增加画面,不增加声音。除了文件之外,它还可以接受生成器动作:
confetti
/
drawbox
生成视频层,
tone
合成音频层(因此
add:tone
叠加起来可以构成和弦)。
bash
auto-editor video.mp4 -w:1 add:./logo.png             # centered, fit to canvas
auto-editor video.mp4 -w:1 add:./pip.mp4:900:60:0.25  # PiP in the corner, audio included
auto-editor video.mp4 -w:1 add:./pip.mp4:900:60:0.25,volume:0.3  # ...tucked under the base
auto-editor video.mp4 -w:1 add:./music.mp3,volume:0.4 # background music, no picture added
auto-editor video.mp4 -w:1 add:./logo.png,spin:0/-30  # the logo spins, not the base video
auto-editor song.mp3 -bg white -w:1 add:./cover.png   # audio + image → video
auto-editor video.mp4 -w:1 add:tone:69                # 440 Hz tone over the audio
auto-editor video.mp4 -w:0 nil,add:tone:81            # beep the silence, don't cut it
auto-editor video.mp4 -w:1 add:tone:60,volume:1..0:ease=out  # a plucked, decaying note
auto-editor video.mp4 -w:1 add:tone:36:saw            # buzzy bass (sine|saw|square|triangle)
叠加层只出现在其所属片段被保留的位置,因此要处理静音片段时请使用
-w:0 nil,add:...
(保留并叠加)。使用
--set-action
时,该范围会被自动保留。

Animations — ramps
from..to

动画 —— 渐变
from..to

zoom
,
opacity
,
blur
,
brightness
,
volume
, and each
pos
field accept a ramp. The value interpolates across the section, reaching
to
on its last frame. More than two points = keyframes, spread evenly.
bash
auto-editor video.mp4 -w:1 zoom:1..1.5          # Ken Burns
auto-editor video.mp4 -w:1 opacity:0..1         # fade in
auto-editor video.mp4 -w:1 volume:0..1          # audio fade in
auto-editor video.mp4 -w:1 zoom:1..1.5..1       # zoom in then out (keyframes)
auto-editor video.mp4 -w:1 add:./logo.png,pos:0..1200:40:1..0.5  # slide + shrink overlay
Easing —
:ease=curve[:duration]
, curve ∈
linear|in|out|inout
. A standalone
ease:
token sets the curve for every animated action after it.
rotate
/
spin
are not affected by easing.
bash
auto-editor video.mp4 -w:1 zoom:1..1.5:ease=inout
auto-editor video.mp4 -w:1 opacity:0..1:ease=in:2sec        # ease over 2s, then hold
auto-editor video.mp4 -w:1 ease:out,zoom:1..1.3,brightness:0..0.3
zoom
、
opacity
、
blur
、
brightness
、
volume
以及
pos
的每个字段都支持渐变。数值会在整个片段内插值,并在最后一帧达到
to
。超过两个点即为关键帧,均匀分布。
bash
auto-editor video.mp4 -w:1 zoom:1..1.5          # Ken Burns
auto-editor video.mp4 -w:1 opacity:0..1         # fade in
auto-editor video.mp4 -w:1 volume:0..1          # audio fade in
auto-editor video.mp4 -w:1 zoom:1..1.5..1       # zoom in then out (keyframes)
auto-editor video.mp4 -w:1 add:./logo.png,pos:0..1200:40:1..0.5  # slide + shrink overlay
缓动 ——
:ease=curve[:duration]
,curve ∈
linear|in|out|inout
。独立的
ease:
标记会为此后的所有动画动作设置缓动曲线。
rotate
/
spin
不受缓动影响。
bash
auto-editor video.mp4 -w:1 zoom:1..1.5:ease=inout
auto-editor video.mp4 -w:1 opacity:0..1:ease=in:2sec        # ease over 2s, then hold
auto-editor video.mp4 -w:1 ease:out,zoom:1..1.3,brightness:0..0.3

Target a time range —
--set-action

定位一个时间段 ——
--set-action

--set-action ACTION,START,END
overrides defaults for a range (range syntax;
sec
,
start
/
end
, negatives all work). The range is force-kept.
bash
auto-editor video.mp4 --set-action nil,0,5sec
auto-editor video.mp4 --set-action speed:1.5,varispeed:1.5,30sec,end
auto-editor video.mp4 --set-action add:./logo.png:600:300:1.0,1sec,2sec
--set-action ACTION,START,END
为某个时间段覆盖默认动作(支持时间范围语法;
sec
、
start
/
end
、负数均可)。该时间段会被强制保留。
bash
auto-editor video.mp4 --set-action nil,0,5sec
auto-editor video.mp4 --set-action speed:1.5,varispeed:1.5,30sec,end
auto-editor video.mp4 --set-action add:./logo.png:600:300:1.0,1sec,2sec

Recipes

实用示例

bash
auto-editor :mic -w:1 deesser:0.8:0.7:0.4         # record, then clean up speech
auto-editor podcast.mp3 -w:0 cut -w:1 speed:1.15      # cut silence, tighten speech
auto-editor video.mp4 -w:0 volume:0.3                 # duck (not cut) the silence
auto-editor video.mp4 -w:1 varispeed:1.25             # nightcore (speed + pitch up)
auto-editor video.mp4 -w:0 pitch:12                   # chipmunk the silence, same length
auto-editor video.mp4 -w:0 speed:6,volume:0.4         # fast, quiet silent sections
With
:mic
, press Ctrl-C to finish capture; actions are applied afterward.
Full reference: https://auto-editor.com/ref/actions.md. For plain cutting / pace / edit methods, see the auto-editor skill.
bash
auto-editor :mic -w:1 deesser:0.8:0.7:0.4         # record, then clean up speech
auto-editor podcast.mp3 -w:0 cut -w:1 speed:1.15      # cut silence, tighten speech
auto-editor video.mp4 -w:0 volume:0.3                 # duck (not cut) the silence
auto-editor video.mp4 -w:1 varispeed:1.25             # nightcore (speed + pitch up)
auto-editor video.mp4 -w:0 pitch:12                   # chipmunk the silence, same length
auto-editor video.mp4 -w:0 speed:6,volume:0.4         # fast, quiet silent sections
使用
:mic
时,按 Ctrl-C 完成录制;之后会再应用动作。
完整参考:https://auto-editor.com/ref/actions.md。关于纯剪切/节奏/编辑方法,请参见 auto-editor skill。