bash - Compress/expand sound from Mp3 files in Linux server/terminal? -


in python script on ubuntu server, need process many incoming mp3 audio files sound compressor. e.g. tool reduces difference between quiet , loud sound levels.

is possible? believe don't need write program this.

if so, utility should use , how configure it?

ffmpeg has filter compressing or expanding audio’s dynamic range called compand. can exec within python script. check documentation usage examples.

random example (for audio whisper , explosion parts):

ffmpeg -i input.mp3 -af "compand=0|0:1|1:-90/-900|-70/-70|-30/-9|0/-3:6:0:0:0" output.mp3 

meaning: attack 0, decay 1, points -90/900, -70/-70, -30/-9. 0/-3, soft-knee 6, gain 0, volume 0, delay 0

to install can sudo apt-get install ffmpeg or compile source latest features.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -