Better FFmpeg icon

Better FFmpeg

Run FFmpeg media operations

Analyze → Detect Silence

AI-generated

Summary

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.

Discussion