How to delete the silence into videos with python

This is a cool thing: delete silence from video to make them nicer.

See the instructions in the video.

You have to clone this repo

https://github.com/bambax/Remsi

go in the cmd and write

git clone https://github.com/bambax/Remsi

If you do not have git, install it or just copy the zip file and unzip it in a folder

Then you got to put the video into the remsi folder.

Open the cmd from there like this

This is the folder (with some files that you will not have, because I made them to use it)
click there up in the address bar
write cmd
click and you get this

write this in the command line CHANGING the name of the video file (mine is 01.mp4, but if yours is not called 01.mp4, change it with the actual name)

ffmpeg -i 01.mp4 -hide_banner -af silencedetect=n=-50dB:d=1 -f null – 2>&1 | python remsi.py > ffmpeg.txt

After this you will find the ffmpeg.txt in the folder with the commands like this

You will find something like this in the file, select and copy
paste everything and run

At the end you will find the mp4 without the silence parts.

ffmpeg -i 01.mp4 -hide_banner -af silencedetect=n=-50dB:d=1 -f null – 2>&1 | python remsi.py > ffmpeg.txt

The video tutorial of the silence deleter


Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.