title
Products            Buy            Support Forum            Professional            About            Codec Central
 

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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • good_reason

    • Aug 2004
    • 45

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

    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.
    Last edited by good_reason; April 10, 2006, 12:34 PM.
  • good_reason

    • Aug 2004
    • 45

    #2
    Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

    any idea ?

    Comment

    • ChristinaS
      dBpoweramp Guru

      • Apr 2004
      • 4097

      #3
      Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

      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

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44574

        #4
        Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

        If you can get them to update the codec on sourceforge I can update dbpoweramp cli.
        Spoon
        www.dbpoweramp.com

        Comment

        • good_reason

          • Aug 2004
          • 45

          #5
          Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

          Originally posted by ChristinaS
          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.

          --------------------------------
          Originally posted by Spoon
          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 ;(

          Comment

          • good_reason

            • Aug 2004
            • 45

            #6
            Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

            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:\>[color=blue]toolame -m d -b 224 test_org_mp2.wav [/color]
            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 [color=red]Chanswap:Off[/color] 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 : [color=red]swap channels of input file[/color], and then convert to 224kbps ,mode:Dual channel

            c:\>toolame [color=blue] -m d -b 224[/color][color=red] -g[/color][color=blue] test_mp2.wav[/color]
            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 [color=red]Chanswap:On[/color] 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:\
            Last edited by good_reason; April 10, 2006, 12:41 PM.

            Comment

            • good_reason

              • Aug 2004
              • 45

              #7
              Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

              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)


              compiled exe file of tooLAME v0.2l
              Commandline-based MP2 encoder, which can be used as an external audio encoder with TMPGEnc in order to provide better sound quality.


              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)

              Comment

              • Spoon
                Administrator
                • Apr 2002
                • 44574

                #8
                Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

                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
                Spoon
                www.dbpoweramp.com

                Comment

                • good_reason

                  • Aug 2004
                  • 45

                  #9
                  Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

                  Originally posted by Spoon
                  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 .
                  Last edited by good_reason; April 11, 2006, 03:55 AM.

                  Comment

                  • good_reason

                    • Aug 2004
                    • 45

                    #10
                    Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

                    Hi to all again,

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

                    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...

                    Comment

                    • Spoon
                      Administrator
                      • Apr 2002
                      • 44574

                      #11
                      Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

                      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?
                      Spoon
                      www.dbpoweramp.com

                      Comment

                      • good_reason

                        • Aug 2004
                        • 45

                        #12
                        Re: BUG: "TooLame mp2 CLI Encoder r1" Swap Left and Right Channel.

                        Originally posted by Spoon
                        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.

                        Comment

                        Working...

                        ]]>