PDA

View Full Version : BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.


good_reason
06-05-2005, 11:48 AM
BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

os: winxpsp2
progarm : dMC r11.0
mp2 plugin :Toolame mp2 CLI Encoder r1

I converted a wave file (with 2 channels; Left:Melody , Right:Vocal ) to mp2 succefully using dmc r11.
And then, i play the mp2 file with any player ,and i found that the Left and Right channel was swapped.

I analysis the file in SoundForge ,and got the same result.

good_reason
06-06-2005, 06:01 AM
any idea ?

ChristinaS
06-06-2005, 12:45 PM
Stupid question #99: are your speakers swapped?

Meaning, is the original wav different from the mp3 as far as the channels are concerned?

Got a sneaky suspicion that you've already checked that though :D

Spoon
06-06-2005, 03:28 PM
If you can get them to update the codec on sourceforge I can update dbpoweramp cli.

good_reason
06-07-2005, 02:29 AM
Stupid question #99: are your speakers swapped?

Meaning, is the original wav different from the mp3 as far as the channels are concerned?

Got a sneaky suspicion that you've already checked that though :D

(so sorry for my broken English :D )
Your suspicion reasonable... ;)
Actually, i had already checked that throughly, and i said it at the bottom line of the first post in this thread.

--------------------------------
If you can get them to update the codec on sourceforge I can update dbpoweramp cli.
Thanks for your reply... ;)
Obviously, I may not able to do it ;(

good_reason
04-10-2006, 08:33 AM
hi,


i tested the toolame.exe directly in the commandline from the following folder:
C:\Program Files\Illustrate\dBpowerAMP\Compression\Toolame Mp2 (CLI)\
and got the following result.
the result of the test1 and test2 is correct. the toolame didn't swap the channel of the wave file by itself.

so, I guess it's a bug of "TooLame mp2 CLI Encoder r1" .
the CLI may had swapped the WAVE file accidently ;)



test1 : convert to 224kbps ,mode:Dual channel

C:\>toolame -m d -b 224 test_org_mp2.wav
Parsing Wave File Header
>>> 44.1 Hz sampling freq selected
>>> Input Wave File is Stereo
--------------------------------------------
Input File : 'test_org_mp2.wav' 44.1 kHz
Output File: 'test_org_mp2.mp2'
224 kbps MPEG-1 Layer II dual-ch Psycho model=1 (Mode_Extension=0)
[De-emph:Off Copyright:No Original:No CRC:Off]
[Padding:Normal Byte-swap:Off Chanswap:Off DAB:Off]
--------------------------------------------
Insufficient PCM input for one frame - fillout with zeros
Hit end of audio data
Avg slots/frame = 731.428; b/smp = 5.08; bitrate = 224.000 kbps

Done
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\

test2 : swap channels of input file, and then convert to 224kbps ,mode:Dual channel

c:\>toolame -m d -b 224 -g test_mp2.wav
Parsing Wave File Header
>>> 44.1 Hz sampling freq selected
>>> Input Wave File is Stereo
--------------------------------------------
Input File : 'test_mp2.wav' 44.1 kHz
Output File: 'test_mp2.mp2'
224 kbps MPEG-1 Layer II dual-ch Psycho model=1 (Mode_Extension=0)
[De-emph:Off Copyright:No Original:No CRC:Off]
[Padding:Normal Byte-swap:Off Chanswap:On DAB:Off]
--------------------------------------------
Insufficient PCM input for one frame - fillout with zeros
Hit end of audio data
Avg slots/frame = 731.428; b/smp = 5.08; bitrate = 224.000 kbps

Done

note: for reading easily, i had replaced the path to from C:\Program Files\Illustrate\dBpowerAMP\Compression\Toolame Mp2 (CLI)\
to c:\

good_reason
04-10-2006, 08:34 AM
i found that the toolame version of "TooLame mp2 CLI Encoder r1" is:
tooLAME version 0.2i

here is the latest version :
tooLAME version 0.2l

source code of tooLAME v0.2l (without *.exe file)
http://sourceforge.net/project/showfiles.php?group_id=19022

compiled exe file of tooLAME v0.2l
http://www.afterdawn.com/software/audio_software/audio_encoders/toolame.cfm


changed history since v0.2i

v0.2j - Released 13 February 2003
- Definitely LGPL
- VBR mode is stable for all sampling frequencies. (See README.VBR for details)
- speedups and cleanups from
Phillipe Jouguet - philippe.jouguet at vdl.fr
(spelling, LSF using psyII, WAVE reading)
Henrik Herranen - leopold at vlsi.fi
(WAVE reading)
Andreas Neukoetter - anti at webhome.de
(verbosity patch '-t' switch for transcode plugin)
Sami Sallinen - sami.sallinen at g-cluster.com
filter_subband loop unroll
psycho_i fix for "% 1408" calcs)

v0.2k - Released 16 February 2003
- Nicolas Croiset
unlimited file read size for stdin
fixed bitstream ending so that mp2 files can be concatenated
DAB options now comes with a size argument
(finally?) fixed the core dump in psycho_1
- Ricardo Schelp ricardoschelp at arnet.com.ar
combined window/filter subband routine. nice speed increase.

v0.2l - Released 3 March 2003
- Added new psychomodels
-1 use precomputed values
0 very low complexity
1 same old psy model 1
2 same old psy model 2
3 psy model 1 rewritten from scratch
4 rewritten psy model 2
- Rewrote the bitstream encoding routines
- Sped up the sin/cos/atan stuff in psymodel 4 (using tables now)

Spoon
04-10-2006, 05:27 PM
looking at the change log they do not mention anything about channel swapping, also the CLI command line sent to too lame only uses -b -m

good_reason
04-10-2006, 11:41 PM
looking at the change log they do not mention anything about channel swapping, also the CLI command line sent to too lame only uses -b -m

weird... the toolame didn't swap the channels, neither the CLI too ...
but the left and right channels of the *.mp2 (output from dMC) was swapped ...?? :D


p/s: The toolame.exe i tested is v0.2i that come along with TooLame mp2 CLI Encoder r1 .

good_reason
04-11-2006, 12:53 AM
Hi to all again,

After i changed the "Locate Encoder" setting to :
c:\program files\illustrate\dbpoweramp\compression\toolame mp2 (CLI)\toolame.exe " -g"

the "TooLame mp2 CLI Encoder R1" is working as i aspect. ( both channels stay at its own place)

so now.. i can very confirm that, it should be a bug of TooLame mp2 CLI Encoder r1" about the swapping of the Left and Right Channels .
Hopes this bug can be elimited soon... ;)

Spoon
04-13-2006, 04:14 PM
And if you use:

c:\program files\illustrate\dbpoweramp\compression\toolame mp2 (CLI)\toolame.exe " -g"

for the latest Toolame encoder are the channels correct?

good_reason
04-14-2006, 04:30 PM
And if you use:

c:\program files\illustrate\dbpoweramp\compression\toolame mp2 (CLI)\toolame.exe " -g"

for the latest Toolame encoder are the channels correct?
Yes, the channels is correct with the latest Toolame version, if using the switch above in dmc.