DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: 30SecondSilencer - add silence every 30 seconds to an mp3 file  (Read 37,387 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
30SecondSilencer is a windows tool to add 30 seconds of silence every 30 seconds to an mp3 file.

30secondsilencer.png

But the duration of the silence and music segments can be customized. For example you can add 10s silence every 55s in the mp3 file. Optional fade in/out.

Download binary and source here
http://www.dcmembers.com/nod5/download/30secondsilencer/


Requirements:
ffmpeg.exe and ffprobe.exe from latest version of ffmpeg-master-latest-win64-gpl-shared.zip at https://github.com/BtbN/FFmpeg-Builds/releases/

If you want to compile from source: Autohotkey


changelog
v180222
changed ffmpeg concatenate code to avoid file errors
updated helpfile
code cleanup

v160113
first version with GUI
now uses windows temp folder as workdir (can be changed in source)
now outputs C:\<inputfolder>\<inputfilename>_30ss.mp3

v160109
first version, no GUI (pm if you want the old source)

Thanks to Attronarch (and mom!) for test driving the script, and for coming up with the use case.  :)

post edit 2022-01-09: new URL to ffmpeg dependency
« Last Edit: January 09, 2022, 01:17 PM by Nod5 »

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #1 on: January 10, 2016, 10:00 AM »
Nice job!
I saw it grow in the other thread, and it's spot-on.

Too bad NANY is already finished, it would have been a great entry :Thmbsup:
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #2 on: January 10, 2016, 11:05 AM »
Thanks Ath! Yeah, bad timing. Will do something for NANY next year!

Attronarch

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 148
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #3 on: January 10, 2016, 12:48 PM »
Nod5, thank you for making the script. With addition of editable music and silence parts this script is great utility for making various training soundtracks, e.g. for circuit training, intervals, tabatas, and sparring / randori sessions...

It is better than using stopwatch and manually operating stereo equipment, puts a lot more pressure.

kilele

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 243
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #4 on: January 12, 2016, 01:00 AM »
Nice tool! I like a few seconds pause between tracks so I can listen to nature when cycling around

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #5 on: January 13, 2016, 05:33 PM »
Updated first post with new version with GUI and icon

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #6 on: January 13, 2016, 05:43 PM »
just wanted to post and say how nice it is to see when a request and a coder come together so perfectly to produce something that is useful to others.

Attronarch

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 148
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #7 on: September 30, 2018, 05:13 PM »
Heya Nod5, I tried to download this again, but all I'm getting is:
Sorry! Download is not available yet.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #8 on: September 30, 2018, 06:57 PM »
Heya Nod5, I tried to download this again, but all I'm getting is:
Sorry! Download is not available yet.
Hi, thanks for the heads up. Problem fixed now, try downloading again.

Attronarch

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 148
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #9 on: October 02, 2018, 05:43 AM »
Thank you for fixing it.

The tool still works great! :)

kilele

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 243
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #10 on: December 30, 2021, 09:27 AM »
Hi, I can't make it work on Windows 10. Could you fix it?

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Reply #11 on: January 07, 2022, 05:17 PM »
Hi, I can't make it work on Windows 10. Could you fix it?
It works on Windows 10. The old ffmpeg link has expired but you can get a compatible version of ffmpeg and ffprobe in ffmpeg-master-latest-win64-gpl-shared.zip on this release page
https://github.com/BtbN/FFmpeg-Builds/releases/

Original address: https://www.donationcoder.com/forum/index.php?topic=42184.0