LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2021, 07:27 PM   #1
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Rep: Reputation: 20
How can I increase gain on multiple mp3 files?


Many years ago I installed something that put a gain increase option on the context menu of audio files. It worked fine but I don't think it worked on more than one file at a time. And I don't know what it was.

Anywho, I want to increase the volume on all of my daily mp3 downloads since I can not get enough volume out of them. I want tp increase on all of them at once otherwise it will take all day to go through the process.

Is there a simple and painless way to do this?
 
Old 05-18-2021, 07:45 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
You might take a look at ffmpeg or mencoder.

I've never attacked this particular issue, but they are both command line tools that come highly recommended for these types of tasks.

Last edited by frankbell; 05-18-2021 at 07:47 PM.
 
Old 05-19-2021, 12:37 PM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
The venerable MP3Gain is also an option.
 
Old 05-19-2021, 01:33 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
You want to play them with an increase, or reencode them?

Some examples:

Increase the high end volume with equalizer:
Code:
mplayer -af equalizer=0:0:0:0:0:5:5:5:5:5 file.mp3
mpv −−af=equalizer=0:0:0:0:0:5:5:5:5:5 file.mp3
ffplay -af "equalizer=f=100:width_type=o:width=20:g=15" file.mp3
Reencode with volume increase example:
Code:
ffmpeg -i file.mp3 -vn -c:a libmp3lame -b:a 192k -af volume=2 Out.mp3
Loop through files
Code:
for i in *.mp3: do
    <something>
done
 
Old 05-20-2021, 01:34 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by sofasurfer View Post
Many years ago I installed something that put a gain increase option on the context menu of audio files. It worked fine but I don't think it worked on more than one file at a time. And I don't know what it was.

Anywho, I want to increase the volume on all of my daily mp3 downloads since I can not get enough volume out of them. I want tp increase on all of them at once otherwise it will take all day to go through the process.

Is there a simple and painless way to do this?
Unfortunately "gain" can basically mean two different things in this context:
  • a metadata setting that tells the media player to raise the volume by this amount. Not all media players understand it though. Search for "ReplayGain"
  • Actually physically re-encoding the sound file to be louder - with all the computing power & loss in quality that entails

Personally, I wouldn't do the latter, and do the former only if I'm 100% sure my media player(s) support(s) it.

I might consider doing the latter while transcoding form lossless to lossy, and I would use ffmpeg for it (but usually people moan that they want a fancyGUI instead).

Not all of my music collection is mp3, even the lossy ones. Is yours?
 
  


Reply

Tags
sound



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I do this "increase = increase * 1.50;" with C errigour Programming 10 07-07-2012 03:32 AM
any way to increase CD-ROM buffer, increase spindown delay, XMMS buffer r00tb33r Linux - Hardware 5 06-12-2009 12:10 AM
LXer: Mp3's Loss, Open Source's Gain LXer Syndicated Linux News 0 02-24-2007 10:01 AM
increase mp3 bit-rate on old files Present Linux - Software 4 03-28-2005 10:35 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration