Free program to add silence on end of 100's of mp3s at once???

Audio Plugin Hosts and other audio software applications discussion
Post Reply New Topic
RELATED
PRODUCTS

Post

Does anyone know of some freeware that will batch process mp3 files in order to add a few seconds of silence to the end of each file???

Post

I haven't tried this myself but Reaper (I know not freeware, but you could use the fully functional trial) has a batch file converter with a "tail size" setting for FX.

If you use a dummy FX (eg a volume plugin set to 0db) and dial in a tail size I'd assume it fills the files with silence at the end.

Image

Post

Brilliant. Works perfectly. I didn't select any FX chain and it produced silence for my requested tail size.

Thank you!

Post

Nice !
You're welcome.

Post

You should make trainings for REAPER users, No-Use! I didn't even know that feature... :o

Post

Sure how much would you pay ? :D

Seriously, thanks but this guy does it probably better than me anyway :)

http://www.groove3.com/str/reaper-4-explained.html

Post

Using DOS commands, this can be done without re-encoding your MP3's.

Try this:

Code: Select all

C:\> type example1.mp3 > result.mp3
C:\> type example2.mp3 >> result.mp3
You will get a new file result.mp3 which is the concatenation of both example1.mp3 and example2.mp3.

So you have to prepare a "silence.mp3" file, and find a way to concatenate that to all mp3's in a folder. Here's how I think that should be done:

Code: Select all

ren silence.mp3 silence.3pm
for %%i in (*.mp3) do type silence.3pm >> %%i
ren silence.3pm silence.mp3 
Put that code (with notepad) in a file called "silence.cmd".
Put a file called "silence.mp3" in the folder with mp3's.
run the silence.cmd script, and presto!
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is served over https!!

Post

I am a complete novice at editing MP3 files. I need to add a 10 second delay at the end of each mp3 file for a group of retired people in a singing group. Each folder has 36 mp3 titles. What is the complete code I need to complete this task.
Can you help?

Post

retired dummy wrote: Mon Jul 27, 2026 3:33 am Can you help?
I doubt it. My instructions (12 years ago! ) were pretty complete.
I'd suggest to find someone who is comfortable doing this for you.
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is served over https!!

Post

retired dummy wrote: Mon Jul 27, 2026 3:33 am I am a complete novice at editing MP3 files. I need to add a 10 second delay at the end of each mp3 file for a group of retired people in a singing group. Each folder has 36 mp3 titles. What is the complete code I need to complete this task.
Can you help?
You asked for code, so Python code below courtesy of Google AI (Gemini). In addition to Python, you will need Pydub and FFmpeg. I didn't test this. It is to be run from the directory that contains the script:
python add_delay.py -- or -- python3 add_delay.py if you saved the script as add_delay.py

**You need to edit the line below with target_directory. Under Windows, two ways to specify the root folder under which all the other folders exist:

# Correct Way A (Forward Slashes example):
target_directory = "C:/Users/YourName/Music/MyAudioFiles"

# Correct Way B (Double Backslashes example):
target_directory = "C:\\Users\\YourName\\Music\\MyAudioFiles"

# code starts:


import os
from pydub import AudioSegment

def add_delay_to_end(root_folder):
# Create 10 seconds (10,000 milliseconds) of silence
ten_second_delay = AudioSegment.silent(duration=10000)

# Walk through the root folder and all its subfolders
for dirpath, _, filenames in os.walk(root_folder):
for filename in filenames:
if filename.lower().endswith('.mp3'):
file_path = os.path.join(dirpath, filename)
print(f"Processing: {file_path}")

try:
# Load the original MP3 file
original_audio = AudioSegment.from_mp3(file_path)

# Append silence to the end of the original audio
delayed_audio = original_audio + ten_second_delay

# Overwrite the original file
delayed_audio.export(file_path, format="mp3")

except Exception as e:
print(f"Error processing {filename}: {e}")

# Replace with the path to your main folder containing the subfolders
target_directory = "./path/to/your/main/folder"
add_delay_to_end(target_directory)

# code ends

Post Reply

Return to “Hosts & Applications (Sequencers, DAWs, Audio Editors, etc.)”