{"id":28799721,"url":"https://github.com/al3rez/shutup","last_synced_at":"2026-03-14T04:08:30.190Z","repository":{"id":296812992,"uuid":"994377601","full_name":"al3rez/shutup","owner":"al3rez","description":"A Python script that automatically removes silent parts from video files using FFmpeg. Perfect for cleaning up recordings, presentations, or any video content with unwanted silent sections.","archived":false,"fork":false,"pushed_at":"2025-06-03T09:50:13.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-10T20:22:54.489Z","etag":null,"topics":["ffmpeg","ffmpeg-script","ffmpeg-wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/al3rez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-01T20:06:14.000Z","updated_at":"2025-06-03T09:50:15.000Z","dependencies_parsed_at":"2025-06-02T17:05:01.827Z","dependency_job_id":"46505e60-d991-4f33-8c7d-08039f965308","html_url":"https://github.com/al3rez/shutup","commit_stats":null,"previous_names":["al3rez/shutup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/al3rez/shutup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al3rez%2Fshutup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al3rez%2Fshutup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al3rez%2Fshutup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al3rez%2Fshutup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/al3rez","download_url":"https://codeload.github.com/al3rez/shutup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al3rez%2Fshutup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260506909,"owners_count":23019444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffmpeg","ffmpeg-script","ffmpeg-wrapper"],"created_at":"2025-06-18T07:00:28.420Z","updated_at":"2026-03-14T04:08:30.183Z","avatar_url":"https://github.com/al3rez.png","language":"Python","readme":"# Shutup 🤫\n\nA Python script that automatically removes silent parts from video files using FFmpeg. Perfect for cleaning up recordings, presentations, or any video content with unwanted silent sections.\n\n## Features\n\n- 🎵 **Automatic silence detection** - Identifies silent regions in video files\n- ✂️ **Smart editing** - Removes silence while preserving audio/video sync\n- 🚀 **Simple usage** - Single command to process any video file\n- 🔧 **Configurable** - Uses FFmpeg's powerful silencedetect filter\n- 📁 **Preserves original** - Creates new output file without modifying the original\n\n## Requirements\n\n- Python 3.6+\n- FFmpeg (must be installed and available in PATH)\n\n## Installation\n\n1. **Install FFmpeg** (if not already installed):\n\n   **Ubuntu/Debian:**\n   ```bash\n   sudo apt update\n   sudo apt install ffmpeg\n   ```\n\n   **macOS (with Homebrew):**\n   ```bash\n   brew install ffmpeg\n   ```\n\n   **Windows:**\n   Download from [https://ffmpeg.org/download.html](https://ffmpeg.org/download.html)\n\n2. **Clone this repository:**\n   ```bash\n   git clone https://github.com/yourusername/shutup.git\n   cd shutup\n   ```\n\n3. **Make the script executable:**\n   ```bash\n   chmod +x shutup.py\n   ```\n\n## Usage\n\n### Basic Usage\n\n```bash\npython3 shutup.py input_video.mp4\n```\n\nor if made executable:\n\n```bash\n./shutup.py input_video.mp4\n```\n\n### Example\n\n```bash\n# Process a recording with silent parts\npython3 shutup.py my_presentation.mp4\n\n# Output will be saved as: outfile_my_presentation.mp4\n```\n\n## How It Works\n\n1. **Silence Detection**: Uses FFmpeg's `silencedetect` filter to identify silent regions\n   - Silence threshold: -50dB\n   - Minimum silence duration: 1 second\n\n2. **Timeline Generation**: Parses the detected silence regions and creates a timeline of non-silent parts\n\n3. **Video Processing**: Uses FFmpeg's `select` and `aselect` filters to extract only the non-silent portions while maintaining sync\n\n## Configuration\n\nThe script currently uses these default settings:\n- **Silence threshold**: -50dB (fairly sensitive)\n- **Minimum silence duration**: 1 second\n\nTo modify these settings, edit the `silencedetect` parameters in the `run_silence_detect()` function:\n\n```python\n\"-af\", \"silencedetect=n=-30dB:d=2\",  # Less sensitive, longer duration\n```\n\n## Output\n\n- Original file: `input_video.mp4`\n- Processed file: `outfile_input_video.mp4`\n\nThe output file contains only the non-silent portions of the original video, with audio and video properly synchronized.\n\n## Supported Formats\n\nSupports any video format that FFmpeg can process, including:\n- MP4\n- AVI\n- MOV\n- MKV\n- WebM\n- And many more\n\n## Error Handling\n\nThe script will display an error if:\n- FFmpeg is not installed or not in PATH\n- No silence regions are detected in the input file\n- The input file is corrupted or in an unsupported format\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is open source. Please add an appropriate license file.\n\n## Troubleshooting\n\n**FFmpeg not found:**\n```\nMake sure FFmpeg is installed and available in your system PATH\n```\n\n**No silence detected:**\n```\nTry adjusting the silence detection parameters for your specific audio content\n```\n\n**Permission denied:**\n```bash\nchmod +x shutup.py\n```\n\n## Acknowledgments\n\n- Built with [FFmpeg](https://ffmpeg.org/) - the powerful multimedia framework\n- Inspired by the need to clean up lengthy recordings automatically\n\n---\n\n⭐ If this tool helped you, please consider giving it a star on GitHub! ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal3rez%2Fshutup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fal3rez%2Fshutup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal3rez%2Fshutup/lists"}