Actions21
- Editing & Transcode Actions
- Muxing & Concatenate Actions
- Generation Actions
- Analyze Actions
- Audio FX Actions
- Video FX Actions
- Create Actions
Analyze → Detect Silence
AI-generatedSummary
Detects silence intervals in audio or video files.
Inputs
- ffmpegPath — Path to FFmpeg binary (default is 'ffmpeg').
- ffprobePath — Path to FFprobe binary (default is 'ffprobe').
- anInput (required) — Input file path of the media to analyze.
- silenceNoiseDb — Set a threshold for silence detection in dB (default is -30).
- silenceMinDur — Minimum duration for detected silence in seconds (default is 0.5).
Output shape
Returns an array of silence intervals with start and end times.
Each interval indicates the start and end of detected silence in the format [{start: , end: , duration: }, ...]. If no silence is detected, the intervals array will be empty.
Examples
Example 1: Detect silence in an audio file called 'example.wav' with default thresholds.
Set 'anInput' to 'example.wav'.
Example 2: Detect silence in a video file with custom thresholds for noise and duration.
Set 'anInput' to 'video.mp4', 'silenceNoiseDb' to -40, and 'silenceMinDur' to 1.