{"id":13850566,"url":"https://github.com/lagmoellertim/unsilence","last_synced_at":"2026-01-02T05:06:30.940Z","repository":{"id":39834705,"uuid":"271095597","full_name":"lagmoellertim/unsilence","owner":"lagmoellertim","description":"Console Interface and Library to remove silent parts of a media file 🔈","archived":false,"fork":false,"pushed_at":"2023-03-28T04:57:13.000Z","size":10805,"stargazers_count":555,"open_issues_count":15,"forks_count":45,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-09T09:41:05.299Z","etag":null,"topics":["audio-processing","contributions-welcome","hacktoberfest","media","python","silence-speedup","silencedetect","video-processing"],"latest_commit_sha":null,"homepage":"https://unsilence.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lagmoellertim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["lagmoellertim"],"ko_fi":"lagmoellertim"}},"created_at":"2020-06-09T19:49:57.000Z","updated_at":"2024-11-08T20:01:00.000Z","dependencies_parsed_at":"2024-01-18T09:57:57.812Z","dependency_job_id":"f49f4fd1-7c4d-48d0-bd2e-fc3af2d38988","html_url":"https://github.com/lagmoellertim/unsilence","commit_stats":{"total_commits":93,"total_committers":15,"mean_commits":6.2,"dds":"0.30107526881720426","last_synced_commit":"f1133363f29c0ef36a2241339eef61a666951919"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagmoellertim%2Funsilence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagmoellertim%2Funsilence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagmoellertim%2Funsilence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lagmoellertim%2Funsilence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lagmoellertim","download_url":"https://codeload.github.com/lagmoellertim/unsilence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225839550,"owners_count":17532305,"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":["audio-processing","contributions-welcome","hacktoberfest","media","python","silence-speedup","silencedetect","video-processing"],"created_at":"2024-08-04T20:01:18.837Z","updated_at":"2026-01-02T05:06:30.862Z","avatar_url":"https://github.com/lagmoellertim.png","language":"Python","funding_links":["https://github.com/sponsors/lagmoellertim","https://ko-fi.com/lagmoellertim"],"categories":["Python"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eUnsilence\u003c/h1\u003e\n\n*\u003cp align=\"center\"\u003eConsole Interface and Library to remove silent parts of a media file\u003c/p\u003e*\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lagmoellertim/unsilence/blob/master/LICENSE\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat\" alt=\"MIT License Badge\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/lagmoellertim/unsilence/actions\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/lagmoellertim/unsilence/workflows/Upload Python Package/badge.svg\" alt=\"Github Action Badge\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/repository/docker/lagmoellertim/unsilence\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/docker/cloud/build/lagmoellertim/unsilence\" alt=\"Docker Cloud Build Status\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://unsilence.readthedocs.io\" target=\"_blank\"\u003e\u003cimg src=\"https://readthedocs.org/projects/unsilence/badge/?version=latest\" alt=\"Documentation Build Status\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://app.codacy.com/manual/lagmoellertim/unsilence?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=lagmoellertim/unsilence\u0026utm_campaign=Badge_Grade_Dashboard\" target=\"_blank\"\u003e\u003cimg src=\"https://api.codacy.com/project/badge/Grade/912008edef1b4960818c29a16ef2c29f\" alt=\"Codacy Badge\"/\u003e\u003c/a\u003e\n \u003cimg alt=\"Lines of code\" src=\"https://img.shields.io/tokei/lines/github/lagmoellertim/unsilence\"\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://asciinema.org/a/jnU7VsPNqaNER3dSrvLp2RAQF\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/lagmoellertim/unsilence/master/media/terminal.gif\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Demo\n\n|Unedited (Before)|Processed by Unsilence (After)|\n|:-:|:-:|\n|[![Unedited Demo Video][unedited_demo_video_1_gif]][unedited_demo_video_1_vid]|[![Edited Demo Video][edited_demo_video_1_gif]][edited_demo_video_1_vid]|\n|Time before edit: 0:09:45 (100%)| Time after edit: 0:07:56 (81.2%), Difference: -0:01:50 (-18.8%)|\n\nThe MIT Intro at the beginning is not included into the time, since I left it in to show the license of the videos.\n\nThese videos are from this online lecture: \n\nAna Bell, Eric Grimson, and John Guttag. 6.0001 Introduction to Computer Science and Programming in Python. Fall 2016. Massachusetts Institute of Technology: MIT OpenCourseWare, https://ocw.mit.edu. License: Creative Commons BY-NC-SA.\n\nMore Information about Licensing can be found in the Licensing Segment of this README.\n\n\n[unedited_demo_video_1_gif]: https://raw.githubusercontent.com/lagmoellertim/unsilence/master/media/unedited_demo.gif\n[unedited_demo_video_1_vid]: https://youtu.be/wl7bveY5Ze4\n\n[edited_demo_video_1_gif]: https://raw.githubusercontent.com/lagmoellertim/unsilence/master/media/edited_demo.gif\n[edited_demo_video_1_vid]: https://youtu.be/EaQh9cZ_jrs\n\n## Introduction\n\nUnsilence is an **open-source tool** that **removes silence** from a media clip of your choice (audio, video).\n\nYou can use it to **speed up** videos without changing the audible speed, so you can understand everything, but get through a video **faster**.\n\n### Exemplary use cases\n\n- You are a college student and watch your lectures online (but have access to the video files). Instead of just increasing the playback speed to ~1.5x, you can remove\n    the parts that do not contain any value, like your lecturer thinking or waiting for something. But instead of cutting out these silent parts, speeding them up by a \n    different, much faster factor (think 6-8x) makes you still able to follow what is happening, so drawing or writing with no speech is sped up, which makes it far more pleasant to watch\n    \n- You want a video editor that automatically cuts any time you talk (or make any sound). That could be useful for manual time lapses\n    (you make a sound every time a short segment should be recorded), or for very fast jump cut videos with no manual editing required\n    \n- You want to have some fun and remove all the audible parts from a video, leaving only the parts where nearly silent noises are in the video (breathing, writing, ...)\n\n### Communication\nIf you have any (technical) questions about unsilence or want to get community feedback, you can use the new [GitHub Discussions Feature](https://github.com/lagmoellertim/unsilence/discussions/). To report a bug or suggest a new feature, create a new issue instead. \n\n### Usage Information\n\nUnsilence can be used as a console line interface or as a python library, with which you can develop your own projects\n\n### Prerequisites\n\n- [Python](https://www.python.org/) \u003e= 3.7.0\n- [pip](https://pypi.org/) (should be installed automatically with python, could be different on some linux distros)\n- [ffmpeg](https://ffmpeg.org/)  \u003e= 4.2.4\n\nIn order to see the fancy progress bar and other terminal styling on windows, you should use [Windows Terminal](https://github.com/microsoft/terminal).\n\n### Installation as command line interface (using pip and pipx)\n\n```sh\n# Installing pipx\npip install pipx\n\n# Installing Unsilence as Command Line Software\npipx install unsilence\n\n# If pipx asks you to, you also need to execute the following line\n# as well as close and reopen your terminal window\npipx ensurepath\n```\n\n### Installation as library (using pip)\n\n```sh\n# Installing Unsilence as Command Line Software\npip install unsilence\n```\n\n### Installation as command line interface (from source)\n\n```sh\n# Clone the repository (stable branch)\ngit clone -b master https://github.com/lagmoellertim/unsilence.git unsilence\n\n#Change Directory\ncd unsilence\n\n# Install pip packages\npip install -r requirements.txt\npip install pipx\n\n# Install unsilence package\npipx install .\n```\n\n### Installation as library (from source)\n\n```sh\n# Clone the repository (stable branch)\ngit clone -b master https://github.com/lagmoellertim/unsilence.git unsilence\n\n#Change Directory\ncd unsilence\n\n# Install pip packages\npip install -r requirements.txt\n\n# Install unsilence package\npython3 setup.py install\n```\n\n## Basic Command Line Usage\n\nThis generates a new file, where the silent parts are 6x as fast as before, the audible parts are the same speed as before\n```sh\nunsilence [input_file] [output_file]\n``` \nYou can change the speed of audible parts with `-as [speed]`, the speed of silent parts with `-ss [speed]`\n```sh\nunsilence [input_file] [output_file] -as [speed] -ss [speed]\n``` \nYou can change the volume of audible parts with `-av [volume]`, the volume of silent parts with `-sv [volume]`\n```sh\nunsilence [input_file] [output_file] -av [volume] -sv [volume]\n``` \nTo generate an audio only output file, you can add the `-ao` flag\n```sh\nunsilence [input_file] [output_file] -ao\n``` \nTo speed up the rendering process, you can increase the thread count using `-t [threads]`\n```sh\nunsilence [input_file] [output_file] -t [threads]\n``` \nFor many more settings, type `-h` or `--help`\n```sh\nunsilence --help\n``` \n\n## Basic Library Usage\nTake a look at this [example](https://github.com/lagmoellertim/unsilence/blob/master/examples/basic_usage.py)\n\n## Idea/Inspiration\n\nFor this project, I took inspiration from the CaryKH's video [Jumpcutter](https://www.youtube.com/watch?v=DQ8orIurGxw).\nThis project does not share any source code with his implementation, and is more optimized for my use case (fast and efficient lecture silence removal).\n\n## Contributing\n\nIf you are missing a feature or have new idea, go for it! That is what open-source is for! 😃\n\n## Author\n\n**Tim-Luca Lagmöller** ([@lagmoellertim](https://github.com/lagmoellertim))\n\n## Donations / Sponsors\n\nI'm part of the official GitHub Sponsors program where you can support me on a monthly basis.\n\n\u003ca href=\"https://github.com/sponsors/lagmoellertim\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/lagmoellertim/shared-repo-files/raw/main/github-sponsors-button.png\" alt=\"GitHub Sponsors\" height=\"35px\" \u003e\u003c/a\u003e\n\nYou can also contribute by buying me a coffee (this is a one-time donation).\n\n\u003ca href=\"https://ko-fi.com/lagmoellertim\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/lagmoellertim/shared-repo-files/raw/main/kofi-sponsors-button.png\" alt=\"Ko-Fi Sponsors\" height=\"35px\" \u003e\u003c/a\u003e\n\nThank you for your support!\n\n## License\n\nThe Code is licensed under the \n\n[MIT License](https://github.com/lagmoellertim/unsilence/blob/master/LICENSE)\n\nCopyright © 2019-present, [Tim-Luca Lagmöller](https://lagmoellertim.de)\n\nAll used videos are licensed under the \n\n[Creative Commons BY-NC-SA License](https://ocw.mit.edu/terms/#cc)\n\n## Have fun :tada:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flagmoellertim%2Funsilence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flagmoellertim%2Funsilence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flagmoellertim%2Funsilence/lists"}