antiboredom / videogrep

automatic video supercuts with python
https://antiboredom.github.io/videogrep
Other
3.33k stars 257 forks source link

silence.py in reverse? Remove silent parts from video #54

Closed kingsofcoms closed 2 years ago

kingsofcoms commented 6 years ago

How to remove silent parts for super-fast commentary with added padding option before and after a dialogue.

opensourcegrappler commented 6 years ago

You can do this like so: videogrep --input "my_movie.avi" --search '.' --padding 10

Since the default search type is regex by putting '.' as the search term it will match to any character. If you didn't realise in the .srt file that contains the subtitles for your video each subtitle has a start and end time. By supercutting together all subtitles the time in between them is removed, the silence is removed.