Console Interface and Library to remove silent parts of a media file
|Unedited (Before)||Processed by Unsilence (After)|
|Time before edit: 0:09:45 (100%)||Time after edit: 0:07:56 (81.2%), Difference: -0:01:50 (-18.8%)|
The MIT Intro at the beginning is not included into the time, since I left it in to show the license of the videos.
These videos are from this online lecture:
Ana 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.
More Information about Licensing can be found in the Licensing Segment of this README.
Unsilence is an open-source tool that removes silence from a media clip of your choice (audio, video).
You can use it to speed up videos without changing the audible speed, so you can understand everything, but get through a video faster.
If you have any (technical) questions about unsilence or want to get community feedback, you can use the new GitHub Discussions Feature. To report a bug or suggest a new feature, create a new issue instead.
Unsilence can be used as a console line interface or as a python library, with which you can develop your own projects
In order to see the fancy progress bar and other terminal styling on windows, you should use Windows Terminal.
# Installing pipx pip install pipx # Installing Unsilence as Command Line Software pipx install unsilence # If pipx asks you to, you also need to execute the following line # as well as close and reopen your terminal window pipx ensurepath
# Installing Unsilence as Command Line Software pip install unsilence
# Clone the repository (stable branch) git clone -b master https://github.com/lagmoellertim/unsilence.git unsilence #Change Directory cd unsilence # Install pip packages pip install -r requirements.txt pip install pipx # Install unsilence package pipx install .
# Clone the repository (stable branch) git clone -b master https://github.com/lagmoellertim/unsilence.git unsilence #Change Directory cd unsilence # Install pip packages pip install -r requirements.txt # Install unsilence package python3 setup.py install
This generates a new file, where the silent parts are 6x as fast as before, the audible parts are the same speed as before
unsilence [input_file] [output_file]
You can change the speed of audible parts with
-as [speed], the speed of silent parts with
unsilence [input_file] [output_file] -as [speed] -ss [speed]
You can change the volume of audible parts with
-av [volume], the volume of silent parts with
unsilence [input_file] [output_file] -av [volume] -sv [volume]
To generate an audio only output file, you can add the
unsilence [input_file] [output_file] -ao
To speed up the rendering process, you can increase the thread count using
unsilence [input_file] [output_file] -t [threads]
For many more settings, type
Take a look at this example
For this project, I took inspiration from the CaryKH's video Jumpcutter. This project does not share any source code with his implementation, and is more optimized for my use case (fast and efficient lecture silence removal).
If you are missing a feature or have new idea, go for it! That is what open-source is for! 😃
Tim-Luca Lagmöller (@lagmoellertim)
I'm part of the official GitHub Sponsors program where you can support me on a monthly basis.
You can also contribute by buying me a coffee (this is a one-time donation).
Thank you for your support!
The Code is licensed under the
Copyright © 2019-present, Tim-Luca Lagmöller
All used videos are licensed under the