Re

Remove Silence from Videos with Ffmpeg

Hacker News

Remove Silence from Videos with Ffmpeg

There was recently a Show HN for a program that lets one remove silence from video files [0]. I was almost certain that ffmpeg could do this... But after searching for it, it turned out I was wrong: ffmpeg can't do this out of the box, and also can't read input from an EDL file [1]. So I set out to write a solution, as simple as possible: produce a list of select filters that are applied to video and audio, and retain only the non-silent parts. The 'silencedetect' audio filter detects silences, and produces timestamps for when silences start and end. So one can pipe the output of that to a Python script, that builds an ffmpeg command with the appropriate select filters. The resulting ffmpeg command can be run to re-encode the video without the silent parts. Hope this helps. - - - Notes: 1/ I did find something somewhat similar to what I ended up doing [2], but it's complicated, and does the video encoding inside of Python. Granted, moviepy uses ffmpeg under the hood, but it's still better if ffmpeg does all the encoding directly. 2/ This solution doesn't produce a myriad of intermediary files that it would recombine afterwards; there is just one encoding of the output video file. 'silencedetect' is very fast, so all in all running this should be pretty fast. [0] https://news.ycombinator.com/item?id=31767830 [1] https://en.wikipedia.org/wiki/Edit_decision_list [2] https://donaldfeury.xyz/remove-the-silent-parts-of-a-video-u...

Share card

Actual performance

38points
1comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
85%85% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: ide, pipe, io · Missing: https docs, excited, just released
63%63% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Strong signals: video · Missing: mobile apps, ios, personal
53%53% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
45%45% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: new, notes, coding · Missing: mac, agents, macos
36%36% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
21%21% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: audio · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Mi
Minclude, remove unneeded C/C++ include directives52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Minclude, remove unneeded C/C++ include directives

Hacker News3
Remove Anything
Remove Anything37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BackgroundRemoval, AIObjectRemover, WatermarkRemover,

Indie Hackerscommitment-full-time
At
AtomicEdits – automatically remove silences from videos49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AtomicEdits – automatically remove silences from videos

Hacker News3
My
My app to remove a flicker from 240fps slow-mo videos47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My app to remove a flicker from 240fps slow-mo videos

Hacker News1
Re
Remove redundant synthesize directives from your Objective-C code40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Remove redundant synthesize directives from your Objective-C code

Hacker News2
Cl
ClearTok – a small tool to remove reposted videos from TikTok30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ClearTok – a small tool to remove reposted videos from TikTok

Hacker News2
SoundScrub
SoundScrub67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Remove any sound from your videos with AI

Indie Hackerscommitment-side-project
Hy
Hyperlaspe videos42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hyperlaspe videos

Hacker News2
Sk
Skimmable Videos42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Skimmable Videos

Hacker News16
FL
FLUCK – soundcloud for videos44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

FLUCK – soundcloud for videos

Hacker News5