title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Need help using CLI with LAME.exe

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

    • Jul 2006
    • 34

    Need help using CLI with LAME.exe

    I'm a registered user of dmc 11.5. I'm considering upgrading to dmc 12 PowerPack, but I have a problem with using CLI and LAME.exe.

    I had no troubles using the CLI with 11.5. This is the command line I used:
    [inFile] [outFile] -V 7 --vbr-new --strictly-enforce-ISO

    For dmc 12, I read the CLI encoder help file and the dynamic CLI encoder tutorial. I think the dynamic CLI is a little too advanced for me. I just want to be able to replicate those same settings above with this new version. I copied the CLI encoder.dll and renamed the copy LAME397.dll. I created a subfolder in \encoder called LAME397. I created a text file in that folder called encoder.txt. The first three lines of encoder.txt are:

    [codec]
    .mp3
    lame.exe

    I located the encoder, checked the boxes for "pass wave header," "db Write ID Tags," and "Highest Quality Decoded Source." I selected a sample wave file to convert (Windows XP Startup.wav).

    I used the old command line above, but it didn't work. I read the help file more closely, and used this command line:
    -V 7 --vbr-new --strictly-enforce-ISO [infile] [outfile]

    It writes the file, but it's 0 bytes. I enabled the Music Converter Debug, and pasted the results below. I tried unchecking the boxes, variations on capitalization, etc. but nothing's working. Still 0 bytes. Does anyone have any idea? I just need a working command line.

    -----
    Splitting Command Line:Done
    ->-> [dBCoreConverter::ReaddBCommandFile]
    <-<- [dBCoreConverter::ReaddBCommandFile]
    ->-> [cldBCodecHandler::FindDecoder]
    Checking Decoder 'C:\Program Files\dBpowerAMP\decoder\Wave.dll' for extension '.wav'
    Decodes [clDecoder::Get]
    <<< Match, using decoder
    Using Registry Cached Decoder: C:\Program Files\dBpowerAMP\decoder\Wave.dll
    <-<- [cldBCodecHandler::FindDecoder]
    BatchID [clDecoder::Set]
    ->-> [cldBCodecHandler::LoadEncoder]
    Loading Encoder 'C:\Program Files\dBpowerAMP\encoder\LAME397.DLL'
    <-<- [cldBCodecHandler::LoadEncoder]
    BatchID [clEncoder::Set]
    ->-> [dBCoreConverter::StripCoreConverterCmds]
    <-<- [dBCoreConverter::StripCoreConverterCmds]
    SendRawUnCompressed [clEncoder::Get]
    Communicate [clDecoder::Get]
    Communicate [clEncoder::Get]
    NeedHQAudio [clEncoder::Get]
    Decode As [clDecoder::Set]
    ->-> [clDecoder::Open]
    Opening file 'C:\WINDOWS\Media\Windows XP Startup.wav' for read access: Opened
    Reading Audio Information
    ->-> [clWaveDecoder::Initialize]
    <-<- [clWaveDecoder::Initialize]
    ->-> [clRIFFHandler::Initialize]
    clRIFFHandler::CalcAllChunks: Ok
    <-<- [clRIFFHandler::Initialize]
    ->-> [clRIFFHandler::ScanFile]
    clRIFFHandler::CalcAllChunks: Ok
    RIFF Header 'RIFF' Length: 424636 FormType 'WAVE'
    Got Chunk 'fmt ' Length: 16 RiffSizeLeft: 424624 ChunkPosition: 12
    Got Chunk 'data' Length: 424600 RiffSizeLeft: 424600 ChunkPosition: 36
    clRIFFHandler::CalcAllChunks: Ok
    <-<- [clRIFFHandler::ScanFile]
    Read Audio Information
    ->-> [clWaveDecoder::ReadIDTags]
    ->-> [clWaveDecoder::PullOutFMTnDATA]
    Finding 'fmt ' chunk.
    Finding 'data' chunk.
    Assigning 'fmt ' chunk to WFX
    <-<- [clWaveDecoder::PullOutFMTnDATA]
    2 ID Tags:
    _riff_1: DATA Length: 4 fmt
    _riff_2: DATA Length: 4 data
    <-<- [clWaveDecoder::ReadIDTags]
    ->-> [clWaveDecoder::FillAudioProps]
    Audio Quality: Perfect (Lossless)
    Encoder Settings: PCM
    Wave Header: Wave Format PCM
    Channel Mapping: Left, Right
    Sample Count: 106,150
    Riff Chunks: 'fmt ' 16 bytes, 'data' 415 KB
    Gapless: Yes
    <-<- [clWaveDecoder::FillAudioProps]
    Writing Audio Information
    ->-> [clWaveDecoder::FillAudioInfo]
    Audio Length: 4814 mili-seconds 424600 bytes 705 kbps
    <-<- [clWaveDecoder::FillAudioInfo]
    Written Audio Information
    Preparing to Decode
    ->-> [clWaveDecoder::PrepareToDecodeAudio]
    Calling ACMDecoder.CreateNewConverter
    Compressed WFX (on file): Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 22050 Bytes Per Second: 88200 Block Align: 4 CB Size: 0
    Uncompressed WFX (sent to db): Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 22050 Bytes Per Second: 88200 Block Align: 4 CB Size: 0
    Setting Position in File
    <-<- [clWaveDecoder::PrepareToDecodeAudio]
    Prepared Decoding
    <-<- [clDecoder::Open]
    ->-> [clEncoder::BeginConversion]
    Converting to 'C:\WUTemp\Windows XP Startup.mp3' encoder settings ' -cli_encoder="C:\Program Files\FLAC\lame.exe" -cli_cmd=" -V 7 --vbr-new --strictly-enforce-ISO [infile] [outfile]" -hi_quality'
    Using Encoder 'C:\Program Files\FLAC\lame.exe'
    Command Line ' -V 7 --vbr-new --strictly-enforce-ISO C:\WUTemp\Windows XP Startup.mp3.tmp.wav C:\WUTemp\Windows XP Startup.mp3'
    Input Wave Format:Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 22050 Bytes Per Second: 88200 Block Align: 4 CB Size: 0
    Output Wave Format:Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 22050 Bytes Per Second: 88200 Block Align: 4 CB Size: 0
    Passing Wave Header: Yes
    Using StdInput Pipe: No
    dBpoweramp Writing Tags: Yes
    <-<- [clEncoder::BeginConversion]
    Communicate [clDecoder::Get]
    Communicate [clEncoder::Get]
    Encoding To: LAME397
    Encoder Cmd Line: -cli_encoder="C:\Program Files\FLAC\lame.exe" -cli_cmd=" -V 7 --vbr-new --strictly-enforce-ISO [infile] [outfile]" -hi_quality
    ============= CONVERSION BEGIN =============
    ============= CONVERSION END =============
    Communicate [clDecoder::Get]
    Communicate [clEncoder::Get]
    ->-> [dBCoreConverter::CloseDecoder]
    ->-> [clDecoder::Close]
    ->-> [clWaveDecoder::Close]
    <-<- [clWaveDecoder::Close]
    <-<- [clDecoder::Close]
    ->-> [clEncoder::EndConversion]
    Running program after conversion 'C:\Program Files\dBpowerAMP\encoder\LAME397\' Command Line:
    Program completed
    <-<- [clEncoder::EndConversion]
    ->-> [dBCoreConverter::IDTagWriter]
    ->-> [cldBCodecHandler::FindDecoder]
    Checking Decoder 'C:\Program Files\dBpowerAMP\decoder\mp3.dll' for extension '.mp3'
    Decodes [clDecoder::Get]
    <<< Match, using decoder
    Using Registry Cached Decoder: C:\Program Files\dBpowerAMP\decoder\mp3.dll
    <-<- [cldBCodecHandler::FindDecoder]
    IDTags [clDecoder::Set]
    ->-> [clDecoder::WriteIDTags]
    <-<- [dBCoreConverter::IDTagWriter]
    Communicate [clDecoder::Get]
    Communicate [clEncoder::Get]
  • Spoon
    Administrator
    • Apr 2002
    • 44574

    #2
    Re: Need help using CLI with LAME.exe

    You are probabbly best using the built in lame, it uses vbr-new and can force iso.
    Spoon
    www.dbpoweramp.com

    Comment

    • jamesbaud

      • Jul 2006
      • 34

      #3
      Re: Need help using CLI with LAME.exe

      Spoon,

      The dll you built is nice, and I'm glad you put in all the work to make it user-friendly.

      But you also worked hard to make the CLI an option, and I like to experiment with settings in LAME.exe that are not available in the GUI.

      I was able to do this in my registered version of dmc 11.5, and I just want to be able to do the same in dmc 12, as I am considering upgrading.

      As you can see from the debug log, I don't get an error message. It writes a file, but the file is 0 bytes.

      Can you try it and let me know?

      Thanks again for all your hard work.

      jb

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44574

        #4
        Re: Need help using CLI with LAME.exe

        The high quality switch will give floating point audio, lame.exe cannot handle that AFAIK.
        Spoon
        www.dbpoweramp.com

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 44574

          #5
          Re: Need help using CLI with LAME.exe

          Try putting quotes around [outfile] ie

          "[outfile]"
          Spoon
          www.dbpoweramp.com

          Comment

          Working...

          ]]>