Log in

View Full Version : Besweet: WAV -> MP2 gain problems.


sh0dan
29th August 2003, 12:09
Unless I'm doing something very wrong, there seem to be problems using gain on WAV->MP2 conversion.

I use the DSPGuru_MP2_for_DVD preset and BeSweet v1.5b20 (with tooLame output). It works fine with no modifications. I would however like to Normalize the sound, as it peaks at about -14dB.

I also use the latest GUI, b79

Postgain/Hybridgain -> Garbled sound/noise. I tried it, since there has been discussions that it should be possible with mp2 also, but it doesn't seem to be implemented, I assume.

Pregain (manually set it to 14db). Sound is now actually slightly LOWER than before, or no effect at all. Normalize to 100% has the same problem - it does the first pass normalize ok, but the again, no gain is applied.

Log example:

BeSweet v1.5b20 by DSPguru.
--------------------------
Using tooLame.dll v0.2l (Apr 24 2003) by Mike Cheng <http://tooLame.sf.net>

Logging start : 08/29/03 , 13:02:31.

D:\apps\BeSweet1_3\BeSweet.exe -core( -input d:\video\propa\final\mixed_audio.wav -output d:\video\propa\final\mixed_audio_test.mp2 -logfile D:\apps\BeSweet1_3\BeSweet.log ) -ota( -g 14db ) -split( -end 120 ) -toolame( -m s -b 192 -e ) -iobuffer( -in 6400000 -out 6400000 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : d:\video\propa\final\mixed_audio.wav
[00:00:00:000] | Output: d:\video\propa\final\mixed_audio_test.mp2
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Overall Track Gain: 14.000dB
[00:00:00:000] +---- I/O Buffer -----
[00:00:00:000] | Input Buffer : not supported, yet.
[00:00:00:000] | Output Buffer Size : 6400000 bytes
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +------ tooLame ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 192
[00:00:00:000] | Channels Mode : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:02:00:096] Conversion Completed !
[00:02:00:096] Actual Avg. Bitrate : 192kbps
[00:00:13:000] <-- Transcoding Duration

Logging ends : 08/29/03 , 13:02:44.


I also tried using SSRC to normalize the result, but it also has no effect (I assume it's because the signal doesn't have to be samplerate-corrected).

DSPguru
29th August 2003, 12:24
1. is your source wave a mono ?
2. try endoing with -mp2enc

sh0dan
29th August 2003, 14:51
1. No - 16bit stereo, 48khz
2. Success! Using mp2enc, the gain is added properly.