Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Audio encoding
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 15th June 2004, 10:18   #1  |  Link
radudumi
Registered User
 
Join Date: Jun 2004
Posts: 5
Losslessly lower the volume of a layer 2 track

Hi everybody


I would like to losslessly lower the volume of a layer 2 track by 6.53 dB. Can you help me please?

I have set the volume of (almost) all the songs from my mp3 collection to 89 dB (using m3gain). However, one of the file is mpeg 1 layer 2, although it has an mp3 extension. mp3gain does not work on layer 2 tracks. Roberto pointed out there is a program besplit with experimental mp2gain support. See this thread:
http://www.hydrogenaudio.org/index.p...opic=22147&hl=
I have tried it out, but it would not work. (Maybe I don't know the correct parameters).

What would you suggest me?


Thanks in advance
Radu
radudumi is offline   Reply With Quote
Old 7th July 2004, 08:53   #2  |  Link
radudumi
Registered User
 
Join Date: Jun 2004
Posts: 5
Maybe DSPGuru can help with MP2Gain?

Thanks
radudumi is offline   Reply With Quote
Old 7th July 2004, 09:15   #3  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
Did you try something like:

besplit -core( -input in.mp2 -prefix out -type mp2 -logfile BeSplit.log ) -ota( -G -5db )

Dunno, if that works, normalizing with '-ota( -G max )' works fine, though.

tiki4
tiki4 is offline   Reply With Quote
Old 7th July 2004, 09:44   #4  |  Link
radudumi
Registered User
 
Join Date: Jun 2004
Posts: 5
@tiki4: Thank you for the suggestion.

I tried your command and the result is bit-by-bit the same as the source mp2 (well, apart from the disappearance of the ID3 tags).

The version with -ota( -G max ) results in the same bit-by-bit identical output.

(Please see the URL I inserted into the first post. I already did some tests).


Regards,
Radu
radudumi is offline   Reply With Quote
Old 7th July 2004, 10:06   #5  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
Hm, I read the HA thread not completely, but nevertheless post your logfiles here if you expect to get help from one of the mods.

As a suggestion: Try to find out what happens systematically:

1. Encode a WAV to MP2 and try to replaygain it with BeSplit,

2. Replaygain the same WAV file with WAVGain, encode to MP2 and then again replaygaining in BeSplit.

There should be a difference, if the original WAV was not normalized before. Also, make sure that your input files to BeSplit do not contain any stuff like ID3 tags in order to exclude any side effects.

tiki4
tiki4 is offline   Reply With Quote
Old 7th July 2004, 10:28   #6  |  Link
radudumi
Registered User
 
Join Date: Jun 2004
Posts: 5
Ok, here are the logs:


BeSplit v0.9b6 by DSPguru.
--------------------------

Logging start : 07/07/04 , 12:21:37.

besplit -core( -input lyra.mp2 -prefix out -type mp2 -logfile BeSplit.log ) -ota( -G -5db )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : lyra.mp2
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 2, Bitrate: 112kbps
[00:00:00:000] | Output Prefix : out
[00:00:00:000] +---------------------
[00:03:36:215] | Writing out01.mp2
[00:03:36:215] +---------------------
[00:03:36:215] Operation Completed !
[00:00:00:000] <-- Process Duration
Logging ends : 07/07/04 , 12:21:37.


BeSplit v0.9b6 by DSPguru.
--------------------------

Logging start : 07/07/04 , 12:23:00.

besplit -core( -input lyra.mp2 -prefix out -type mp2 -logfile BeSplit.log ) -ota( -G max )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : lyra.mp2
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 2, Bitrate: 112kbps
[00:00:00:000] | Output Prefix : out
[00:00:00:000] +---------------------
[00:03:36:215] | Writing out01.mp2
[00:03:36:215] +---------------------
[00:03:36:215] Operation Completed !
[00:00:02:000] <-- Process Duration
Logging ends : 07/07/04 , 12:23:02.


BeSplit v0.9b6 by DSPguru.
--------------------------

Logging start : 07/07/04 , 12:26:59.

besplit -core( -input lyra.mp2 -prefix out -type mp2 -logfile BeSplit.log ) -ota( -G 1.1 )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : lyra.mp2
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] | Channels Count: 2, Bitrate: 112kbps
[00:00:00:000] | Output Prefix : out
[00:00:00:000] +---------------------
[00:03:36:215] | Asserted -4.0dB to out01.mp2.
[00:03:36:215] +---------------------
[00:03:36:215] Operation Completed !
[00:00:01:000] <-- Process Duration
Logging ends : 07/07/04 , 12:27:00.


Quote:
As a suggestion: Try to find out what happens systematically:
Regarding the suggestion, I will do that kind of test and post the result.



Thanks
Radu
radudumi is offline   Reply With Quote
Old 7th July 2004, 10:35   #7  |  Link
radudumi
Registered User
 
Join Date: Jun 2004
Posts: 5
besplit -core( -input lyra.mp2 -prefix out -type mp2 -logfile BeSplit.log ) -ota( -G x )

When x is between 0.1db and 2db, besplit actually applies -4dB.

When x <= 0, the result is the same as the source.

When x is 2.1db, besplit applies 2dB.


Radu
radudumi is offline   Reply With Quote
Old 7th July 2004, 12:05   #8  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
There we go...

Again, I just can guess what's happening: As MP3 only allows to adjust the "volume" by a step of 1.5 dB, this may be similar for MP2. From your results I only can assume that BeSplit just does nothing if the value is too small. Maybe you should try to normalize a file that needs an adjustment of s.th. like +10dB or so. I will test this at well, but clarfication could only be provided by DSPGuru.

Cheers,

tiki4

Btw: Here is the original thread on HA.

Maybe you also have to adjust '-ota( -G max )' to '-ota( -g xx dB )'.

Last edited by tiki4; 7th July 2004 at 12:13.
tiki4 is offline   Reply With Quote
Old 8th July 2004, 11:43   #9  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
O.K., I tested that stuff a bit:

besplit with -ota( -G max ) works as expected, but only applies max-noclip.

besplit with -ota( -g xxdb ) also works with positive and negative values. I didn't try very small values, though.

Two things are important to keep in mind: besplit applies max-noclip value which was in my short tests considerably higher than the replaygain value (89 dB). I verified my results with the replaygaining feature in foobar2000. Winamp did not turn out to be reliable (in_mp3.dll + replaygain plugin).
If you don't want to use foobar2000 to verify the applied gain value, you can also use an MP2 decoder + WaveGain. I'd recommend an decoder that is known to be reliable, e.g. madplay or lame.

Cheers,

tiki4
tiki4 is offline   Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.