Jeroen-45 / python-video-silence-cutter

Python script that uses ffmpeg and ffprobe to automatically detect and cut silences from videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A tool for removing silences from a video

This tool is made to just work!

It automatically cuts out all the silences from your videos. This is useful for, for example, shortening lecture recordings, or automating a 'first pass' edit for your own videos. This program was adapted from the python script by DarkTrick, and has been made to work properly cross-platform and include some more options.

Dependencies

  • python3
  • ffmpeg
  • ffprobe

You need to have all of those installed.

@Windows users: Make sure, that the path to ffmpeg and ffprobe are inside the "path variable". I.e. you can run both commands from the command line like C:> ffmpeg.

How to use

  • Easiest command:
    python silence_cutter.py [input_file]

  • Show help and more options:
    python silence_cutter.py -h

  • All options:
    python silence_cutter.py [-h] [-o OUTPUT_FILE] [-n NOISE_TOLERANCE] [-d MIN_DURATION] [-m MARGIN] input_file

About

Python script that uses ffmpeg and ffprobe to automatically detect and cut silences from videos


Languages

Language:Python 100.0%