Open Source

Auto-Editor: Open-Source Automatic Video Editing via Silence Detection

Auto-Editor is a CLI tool for automatically editing videos by analyzing audio loudness to remove silence and dead space from recordings.

Keeping this site alive takes effort — your support means everything.
無程式碼也能輕鬆打造專業LINE官方帳號!一鍵導入模板,讓AI助你行銷加分! 無程式碼也能輕鬆打造專業LINE官方帳號!一鍵導入模板,讓AI助你行銷加分!
Auto-Editor: Open-Source Automatic Video Editing via Silence Detection

Content creators who record long-form video – tutorials, podcasts, lectures, gameplay, interviews – face a common post-production challenge: removing the dead space. Pauses for thought, silences between sentences, hesitations, and empty moments between scenes all need to be cut for a polished final product. Manual editing of these segments is tedious, time-consuming, and error-prone.

Auto-Editor solves this problem with a simple but powerful approach: it analyzes the audio track of a video, identifies silent or low-volume segments, and removes them along with their corresponding video frames. The result is a dramatically tighter edit that preserves all the substance while eliminating the pacing drag.

Created by developer WyattBlue, Auto-Editor has become the go-to open-source tool for automatic silence-based video cutting. It is used by YouTubers, podcast editors, educators, and anyone who produces talking-head content and wants to streamline their editing workflow.


How Does Auto-Editor’s Silence Detection Work?

The core algorithm is conceptually simple but includes several configurable parameters for fine-tuning the edit.

flowchart TD
    A[Input Video\nMP4 / MOV / MKV] --> B[Audio Extraction\nTemporary WAV File]
    B --> C[Audio Analysis\nLoudness Calculation]
    C --> D{Silence Detection\nThreshold Check}
    D -->|Above Threshold| E[Keep Segment]
    D -->|Below Threshold| F{Minimum\nSilence Duration?}
    F -->|Longer than min| G[Mark for Cutting]
    F -->|Shorter than min| H[Keep Segment]

    E --> I[Edit Decision List\nCut Points]
    G --> I
    I --> J[FFmpeg Re-encode\nApply Cuts]
    J --> K[Output Video\nCleaned & Tightened]

The tool analyzes the audio frame by frame, computing RMS loudness and comparing it against the user-specified threshold (default -20dB). When loudness drops below the threshold for longer than the minimum silence duration (default 1 second), that segment is marked for removal. The corresponding video frames are cut, and the remaining clips are seamlessly joined.


What Configuration Options Does Auto-Editor Offer?

Auto-Editor provides extensive control over the editing behavior through command-line flags and a configuration file.

ParameterDefaultDescriptionEffect
--silent-threshold-20 dBLoudness threshold for silence detectionLower = more aggressive cutting
--silent-speed99999 (remove)Speed for silent segmentsCan slow down instead of remove
--frame-margin0.25sPadding around cut segmentsPrevents abrupt transitions
--min-silence1.0sMinimum silence duration to cutPrevents micro-cuts
--video-speed1.0xSpeed for non-silent segmentsNormal playback speed
--margin0.1sAdditional margin on each sideSmooths cut transitions

The --frame-margin parameter is especially important for natural-feeling edits. Without a margin, cuts happen at the exact moment sound drops below the threshold, which can feel abrupt. Adding a small margin smooths the transition.


What Additional Cutting Modes Are Available?

Beyond basic silence detection, Auto-Editor includes advanced modes for different editing scenarios.

ModeFlagDescriptionUse Case
Silence (audio)DefaultCuts based on audio loudnessTalking-head videos
Motion (visual)--motionCuts based on pixel movementStatic camera footage
Not-Moving--not-movingKeeps only moving segmentsAction-only highlights
Subtitle--subtitleCuts based on subtitle filePre-timed subtitle cutting
Python Expression--expressionCustom cut logicAdvanced automation

The motion detection mode is useful for security camera footage or time-lapse recordings where you want to skip periods of no visual activity. Combined with the audio mode via two-pass processing, you can create edits that remove both silent audio segments and static visual segments.


How Do Installation and Usage Work?

Auto-Editor is designed to be simple to install and use from the command line.

# Install via pip
pip install auto-editor

# Basic usage - remove silence
auto-editor input.mp4

# Advanced usage with custom settings
auto-editor input.mp4 \
  --silent-threshold -30 \
  --frame-margin 0.5 \
  --output cleaned_video.mp4

# Motion-based cutting
auto-editor input.mp4 --motion

The output preserves the original video quality, using FFmpeg for re-encoding with your specified codec settings. The tool also supports preview modes that generate a text-based edit decision list (EDL) before committing to the actual video processing.


FAQ

What is Auto-Editor? Auto-Editor is an open-source command-line tool that automatically edits videos by analyzing audio loudness to detect and remove silent or low-volume segments, creating a tighter, more engaging final video.

How does Auto-Editor work? Auto-Editor analyzes the audio track of a video file, identifies segments where audio falls below a configurable loudness threshold for longer than a minimum duration, and removes those segments while cutting corresponding video frames.

What export formats does Auto-Editor support? Auto-Editor outputs standard video files via FFmpeg, supporting any container format FFmpeg supports (MP4, MKV, AVI, MOV, WebM) with configurable codec options.

Does Auto-Editor support motion detection? Yes, Auto-Editor includes a motion detection mode that can identify and remove segments with minimal visual movement, complementing the audio-based silence detection.

How do I install Auto-Editor? Install via pip with pip install auto-editor. FFmpeg must be installed separately and available on the system PATH. Alternatively, download pre-built binaries from the GitHub releases page.


Further Reading

TAG
CATEGORIES