title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Problem using CLI encoder + flac.exe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exec
    dBpoweramp Enthusiast

    • Dec 2007
    • 53

    Problem using CLI encoder + flac.exe

    Hi!

    Trying to set up a command line using the CLI (latest version) encoder in combination of flac.exe (also latest version). It doesn't matter what I try, I always get the error "Error reading metadata" when the track was ripped and is up for encoding. Then the resulting flac file has 0 bytes.
    My command line looks like this:
    [infile] [outfile]
    I've already tried different combinations (e.g. with a leading space), (un) ticked the options of the CLI encoder, set the right extension (.flac) in the encoder.txt file, but nothing seems to work.

    Any suggestions?


    PS: And yes, I know that a flac decoder comes with dbpoweramp already. But I still want to use the CLI encoder.
    Last edited by exec; April 26, 2010, 07:40 PM.
  • Spoon
    Administrator
    • Apr 2002
    • 44583

    #2
    Re: Problem using CLI encoder + flac.exe

    Flac would need something other than [infile] [outfile]?

    perhaps try in quotes:

    "[infile]" "[outfile]"
    Spoon
    www.dbpoweramp.com

    Comment

    • exec
      dBpoweramp Enthusiast

      • Dec 2007
      • 53

      #3
      Re: Problem using CLI encoder + flac.exe

      As I said, I've tried everything, with quotes, without quotes, with different flac commandline options, etc. - nothing seems to work.
      Well, I think that the error message is a little strange. What metadata should be read?

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44583

        #4
        Re: Problem using CLI encoder + flac.exe

        That is later on when the audio track should have been written, as flac.exe is not writing anything this is causing our tagging routine to fail.
        Spoon
        www.dbpoweramp.com

        Comment

        • exec
          dBpoweramp Enthusiast

          • Dec 2007
          • 53

          #5
          Re: Problem using CLI encoder + flac.exe

          OK, before spending much time figuring out how to get CLI + flac.exe to work, here's another question:
          What are the tagging abilities when using CLI + flac.exe when ticking the ID tag option of the CLI encoder? Would dbpoweramp recogize that flac files should be tagged and use vorbis tags rather then ID3 tags?
          Last edited by exec; April 27, 2010, 11:37 AM.

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 44583

            #6
            Re: Problem using CLI encoder + flac.exe

            dBpoweramp would tag the file always with Vorbis comments.
            Spoon
            www.dbpoweramp.com

            Comment

            • exec
              dBpoweramp Enthusiast

              • Dec 2007
              • 53

              #7
              Re: Problem using CLI encoder + flac.exe

              Now I've tried to get this working for a few days, without success...

              Well, I've switched the music converter in debug mode, and here is what I've got:
              Code:
              Splitting Command Line:Done
              ->->  [dBCoreConverter::ReaddBCommandFile]
              <-<-  [dBCoreConverter::ReaddBCommandFile]
              Allying to Processor 1
              ->->  [cldBCodecHandler::LoadEncoder]
                Loading Encoder 'C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder.DLL'
              <-<-  [cldBCodecHandler::LoadEncoder]
              BatchID  [clEncoder::Set]
              ->->  [dBCoreConverter::StripCoreConverterCmds]
              <-<-  [dBCoreConverter::StripCoreConverterCmds]
              SendRawUnCompressed  [clEncoder::Get]
              Communicate  [clEncoder::Get]
              ->->  [dBCoreConverter::OpenDecoder]
                Reading StdIn Tmp File IDTags: Read
                Using StdInput WFX:Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 176400  Block Align: 4  CB Size: 0
              <-<-  [dBCoreConverter::OpenDecoder]
              SendOverReplayGainTags  [clEncoder::Get]
              ->->  [clEncoder::BeginConversion]
                Converting to 'C:\Users\User\Music\Rotten Sound\Rotten Sound - Veenom.flac.tmp.flac' encoder settings ' -cli_encoder="C:\Program Files (x86)\Encoders\FLAC\bin\flac.exe" -cli_cmd=" -o [outfile] [infile]" -nodbtag'
                Using Encoder 'C:\Program Files (x86)\Encoders\FLAC\bin\flac.exe'
                Command Line ' -o C:\Users\User\Music\ROTTEN~1\ROTTEN~2.FLA C:\Users\User\Music\ROTTEN~1\ROTTEN~1.WAV'
                Input Wave Format:Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 176400  Block Align: 4  CB Size: 0
                Output Wave Format:Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 176400  Block Align: 4  CB Size: 0
                Passing Wave Header: Yes
                Using StdInput Pipe: No
                dBpoweramp Writing Tags: No
              <-<-  [clEncoder::BeginConversion]
              Communicate  [clEncoder::Get]
              Encoding To: CLI Encoder
              Encoder Cmd Line:  -cli_encoder="C:\Program Files (x86)\Encoders\FLAC\bin\flac.exe" -cli_cmd=" -o [outfile] [infile]" -nodbtag
              ============= CONVERSION BEGIN =============
              ============= CONVERSION END =============
              Communicate  [clEncoder::Get]
              ->->  [dBCoreConverter::CloseDecoder]
                ->->  [dBCoreConverter::CloseDecoder]
                <-<-  [dBCoreConverter::CloseDecoder]
              ->->  [clEncoder::EndConversion]
                Running program after conversion 'C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder\' Command Line: 
                Program completed
              <-<-  [clEncoder::EndConversion]
              Communicate  [clEncoder::Get]
                Conversion completed in 249 mili-seconds x22 realtime encoding
              And it looks like it is using a file extension of ".FLA" - where does this come from? In the encoder.txt, there's only given ".flac" as extension.

              I can't see the problem here, because flac.exe needs something like
              Code:
              flac -o myFileName.flac myFileName.wav
              What else can I try?

              Comment

              • Spoon
                Administrator
                • Apr 2002
                • 44583

                #8
                Re: Problem using CLI encoder + flac.exe

                You must have the option in Windows to disable the short pathnames, because to handle unicode the short pathname is generated from the long pathname. Ie:

                C:\Users\User\Music\ROTTEN~1\ROTTEN~2.FLA

                is passed when it really is:

                C:\Users\User\Music\ROTTENxxxxx\ROTTENxxxxx.FLAC
                Spoon
                www.dbpoweramp.com

                Comment

                • exec
                  dBpoweramp Enthusiast

                  • Dec 2007
                  • 53

                  #9
                  Re: Problem using CLI encoder + flac.exe

                  OK, I've tried it with [infile_long] and [outfile_long]. It's not woking again... :(

                  Now in the debug log it says:
                  Code:
                  Command Line ' -o C:\Users\User\Music\Rotten Sound\Rotten Sound - Veenom.flac.tmp.flac C:\Users\User\Music\Rotten Sound\Rotten Sound - Veenom.flac.tmp.flac.tmp.wav'
                  Why there is this "*.flac.tmp.flac" and "*.flac.tmp.flac.tmp.wav"?

                  Comment

                  • Spoon
                    Administrator
                    • Apr 2002
                    • 44583

                    #10
                    Re: Problem using CLI encoder + flac.exe

                    You would need to close in quotes, ie "[infile_long]"
                    Spoon
                    www.dbpoweramp.com

                    Comment

                    • exec
                      dBpoweramp Enthusiast

                      • Dec 2007
                      • 53

                      #11
                      Re: Problem using CLI encoder + flac.exe

                      Sorry for pushing that topic so far... :o

                      The qoutes doens't matter, still not working.
                      I just wonder, because there is no such problem using lame.exe/CLI - there it's working since the first try. Maybe flac.exe/CLI is just incompatible?

                      Comment

                      Working...

                      ]]>