semvec/pypi-packages huggingface dataset:
SilenceCutter 1.0
A tool to remove silent parts from video files
Requires Python: >=3.6

# SilenceCutter

SilenceCutter is a Python application that automatically detects and removes silent parts from video files, allowing you to create smoother and more seamless videos.

## Features

- **Silence Detection:** Detects silent sections in videos.
- **Silence Removal:** Removes silent parts to make videos smoother.
- **Merges Close Segments:** Combines non-silent segments that are close to each other.
- **Smooth Transitions:** Adds padding durations to the beginning and end of segments for smoother cuts.
- **User-Friendly:** Simple and easy to use.

## Requirements

- Python 3.x
- moviepy
- pydub

## Installation

```bash
pip install moviepy pydub
```

## Usage

```bash
python silence_cutter.py --input video.mp4 --output video_silence_removed.mp4
```

## Parameters

- `--input`: Input video file
- `--output`: Output video file
- `--silence_threshold`: Silence threshold value (default: -30)
- `--min_silence_length`: Minimum silence duration (default: 350)
- `--padding_duration`: Transition duration (default: 100)
- `--max_gap`: Maximum segment gap to be merged (default: 100)
- `--temp_dir`: Directory where temporary files will be saved
- `--verbose`: Show detailed outputs

## Example

```bash
python silence_cutter.py --input ./example_input.mp4 --output ./example_output.mp4
```

## License