Forum: Ruby Need to change loudness of a mp3 file using ruby script

E0d8c2f6e65b6fce72a5c20da9d7adbe?d=identicon&s=25 chandan mallik (chandan0707)
on 2013-03-21 08:47
I need to change the loudness of a mp3 file using mp3gain.I am toatally
helpless how to do that. How to fetch a file in ruby program and then
set the loudness.
3853dd5371ac1e094fc45d6c2aa0e459?d=identicon&s=25 Carlo E. Prelz (Guest)
on 2013-03-21 08:58
(Received via mailing list)
Subject: Need to change loudness of a mp3 file using ruby script
  Date: gio 21 mar 13 04:47:35 +0900

Quoting chandan mallik (lists@ruby-forum.com):

> I need to change the loudness of a mp3 file using mp3gain.I am toatally
> helpless how to do that. How to fetch a file in ruby program and then
> set the loudness.

This means that you have to learn how to use Ruby. You should dedicate
some time to a good tutorial. You will certainly learn how to execute
external programs from a Ruby script.

If you post your attempts, and the eventual error messages, chances
are you will receive useful suggestions/corrections.

Carlo
E0d8c2f6e65b6fce72a5c20da9d7adbe?d=identicon&s=25 chandan mallik (chandan0707)
on 2013-03-21 14:35
Carlo E. Prelz wrote in post #1102552:
> Subject: Need to change loudness of a mp3 file using ruby script
>   Date: gio 21 mar 13 04:47:35 +0900
>
> Quoting chandan mallik (lists@ruby-forum.com):
>
>> I need to change the loudness of a mp3 file using mp3gain.I am toatally
>> helpless how to do that. How to fetch a file in ruby program and then
>> set the loudness.
>
> This means that you have to learn how to use Ruby. You should dedicate
> some time to a good tutorial. You will certainly learn how to execute
> external programs from a Ruby script.
>
> If you post your attempts, and the eventual error messages, chances
> are you will receive useful suggestions/corrections.
>
> Carlo
Thanks Carlo

But I know how to execute a mp3 file using ruby script and I am able to
set the loudness too using this script
path = "/home/cis/Desktop/ *mp3"
system("mp3gain -c -p -r -d 4.0 "+path)

but what I want is the loudness should be same for all .mp3 files and
that is not coming. I want the loudness to be 93dB.If Anyone can do that
please help me with this.
3853dd5371ac1e094fc45d6c2aa0e459?d=identicon&s=25 Carlo E. Prelz (Guest)
on 2013-03-21 15:35
(Received via mailing list)
Subject: Re: Need to change loudness of a mp3 file using ruby script
  Date: gio 21 mar 13 10:35:05 +0900

Quoting chandan mallik (lists@ruby-forum.com):

> But I know how to execute a mp3 file using ruby script and I am able to
> set the loudness too using this script
> path = "/home/cis/Desktop/ *mp3"
> system("mp3gain -c -p -r -d 4.0 "+path)
>
> but what I want is the loudness should be same for all .mp3 files and
> that is not coming. I want the loudness to be 93dB.If Anyone can do that

This has practically nothing to do with Ruby. You should knock at some
audio specialist forum. I used Sox to obtain something of that sort
(roughly having all my Ogg files with a similar loudness), but 93db?
No idea.

Carlo
E0d8c2f6e65b6fce72a5c20da9d7adbe?d=identicon&s=25 chandan mallik (chandan0707)
on 2013-03-22 11:03
Thanks Carlo. BTW I found the solution and have successfully
implemented it.
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2013-03-22 11:11
Would you mind sharing the main gist of your solution for future hopeful
searchers?
B31e7abd14f1ceb4c4957da08933c630?d=identicon&s=25 Josh Cheek (josh-cheek)
on 2013-03-22 14:08
(Received via mailing list)
On Fri, Mar 22, 2013 at 5:03 AM, chandan mallik
<lists@ruby-forum.com>wrote:

> Thanks Carlo. BTW I found the solution and have successfully
> implemented it.
>
>
http://xkcd.com/979/
9fb815c3bebd64d2b0dea7b9c742cedb?d=identicon&s=25 Garthy D (Guest)
on 2013-03-25 03:06
(Received via mailing list)
Hi Josh,

On 22/03/13 23:38, Josh Cheek wrote:
> On Fri, Mar 22, 2013 at 5:03 AM, chandan mallik <lists@ruby-forum.com
> <mailto:lists@ruby-forum.com>> wrote:
>
>     Thanks Carlo. BTW I found the solution and have successfully
>     implemented it.
>
>
> http://xkcd.com/979/

Thanks- that gave me a good laugh.

Cheers,
Garth
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.