Actions define what auto-editor does to different parts of your media. By default, silent sections are cut out and loud sections are kept at normal speed. Actions give you fine-grained control over this behavior.
Actions are specified using the --when-silent and --when-normal options:
# Cut silent sections (default behavior)
auto-editor video.mp4 --when-silent cut
# Keep normal sections unchanged (default behavior)
auto-editor video.mp4 --when-normal nil
Syntax: nil
Do nothing. Keep the section unchanged at normal speed with normal pitch.
# Keep everything, even silent sections
auto-editor video.mp4 --when-silent nil
Syntax: cut
Remove the section completely from the output.
# Remove silent sections (default behavior)
auto-editor video.mp4 --when-silent cut
# Remove loud sections (inverted editing)
auto-editor video.mp4 --when-normal cut
Syntax: speed:<value>
Change the playback speed while preserving pitch using time-stretching.
# Speed up silent sections to 8x (preserving pitch)
auto-editor video.mp4 --when-silent speed:8
# Slow down normal sections to half speed
auto-editor video.mp4 --when-normal speed:0.5
How it works: Uses FFmpeg's atempo filter to change speed without affecting pitch. This is like a DJ's time-stretching feature.
Syntax: varispeed:<value>
Change the playback speed by varying pitch, like analog tape or vinyl.
# Speed up silent sections with pitch variation
auto-editor video.mp4 --when-silent varispeed:2
# Create slow-motion effect with lower pitch
auto-editor video.mp4 --when-normal varispeed:0.5
How it works: Uses FFmpeg's asetrate filter to change sample rate, which changes both speed and pitch together. This is the classic tape speed effect.
Syntax: volume:<value>
Adjust the audio volume level.
# Reduce silent section volume to 20%
auto-editor video.mp4 --when-silent volume:0.2
# Boost loud sections
auto-editor video.mp4 --when-normal volume:1.5
You can combine multiple actions using commas. Actions are applied in the order specified and their effects multiply together.
# Speed up AND reduce volume
auto-editor video.mp4 --when-silent speed:3,volume:0.5
# Combine speed and varispeed for complex effects
# Effective speed: 1.25 × 1.25 = 1.5625x
auto-editor video.mp4 --when-normal varispeed:1.25,speed:1.25
# Triple action: speed, varispeed, and volume
auto-editor video.mp4 --when-silent speed:2,varispeed:1.5,volume:0.8
When you combine speed and varispeed, their effects multiply:
# These combinations give you fine control:
varispeed:1.25,speed:1.25 # = 1.5625x total speed
varispeed:2,speed:0.5 # = 1x speed (varispeed pitch, normal speed)
speed:2,speed:1.5 # = 3x total speed
auto-editor video.mp4 --when-silent speed:8
# Slightly slow down normal sections for emphasis
auto-editor video.mp4 --when-normal speed:0.9
# Keep silent sections but reduce volume
auto-editor video.mp4 --when-silent volume:0.3
# Nightcore effect: speed up and pitch up
auto-editor video.mp4 --when-normal varispeed:1.25
# Slow-mo with deep voice
auto-editor video.mp4 --when-normal varispeed:0.75
# Fast silent sections with reduced volume
auto-editor video.mp4 --when-silent speed:6,volume:0.4
# Cut silence, slightly speed up speech
auto-editor podcast.mp3 --when-silent cut --when-normal speed:1.15
# Keep everything but boost quiet parts
auto-editor song.mp3 --when-silent volume:1.8 --when-normal volume:1.0
The following options are deprecated but still supported:
# Old way (deprecated)
auto-editor video.mp4 --silent-speed 8 --video-speed 1
# New way (preferred)
auto-editor video.mp4 --when-silent speed:8 --when-normal speed:1
atempo filter, supports values 0.5-100.0 per stageasetrate + aresample, range 0.2-100.0volume filter, any positive valuespeed and varispeed affect video frame selectionWhen using multiple actions, they're applied in this order:
speed (time-stretching)varispeed (sample rate change)volume (gain adjustment)This order ensures optimal audio quality.
# Subtle speedup
auto-editor video.mp4 --when-normal speed:1.1
# Aggressive silence removal
auto-editor video.mp4 --when-silent speed:99999
# (speed:99999 is equivalent to cut)
# Complex speed layering
auto-editor video.mp4 --when-normal speed:1.2,varispeed:1.1
# Normalize loud/quiet sections
auto-editor video.mp4 --when-silent volume:2 --when-normal volume:0.8
# Ducking effect
auto-editor video.mp4 --when-silent volume:0.1
# Chipmunk effect on silence
auto-editor video.mp4 --when-silent varispeed:2,volume:1.2
# Deep voice on normal sections
auto-editor video.mp4 --when-normal varispeed:0.7
# Fast and quiet silence
auto-editor video.mp4 --when-silent speed:10,volume:0.2
--cut-out and --add-in