illustrate
Products            Buy            Support Forum            Registrations            About           
 

CoreConverter CLI prepends track filename to strings in ID Tag Processing -exportart

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

    • Mar 2008
    • 9

    #1

    CoreConverter CLI prepends track filename to strings in ID Tag Processing -exportart

    Hi,

    This bug seems equally true of -importart and -exportart.

    Example CoreConverter.exe" -dspeffect1="ID Tag Processing=-case={qt}0{qt} -exportart={qt}test.jpg{qt}" produces a file called "01 Dance on a Volcano.m4atest.jpg"

    I would have expected just "test.jpg"

    Going the other way, CoreConverter.exe" -dspeffect1="ID Tag Processing=-case={qt}0{qt} -exportart={qt}{qt} -importart={qt}folder.jpg{qt}"

    requires that I create a copy of my jpeg file called "01 Dance on a Volcano.flacfolder.jpg" in order to successfully import the artwork. I'd rather it could just import "folder.jpg", but if I try that nothing happens (the artwork is not embedded in the output file).

    A really nice feature is that if I leave the filename blank as per the old version 1 dspeffects, it imports the whole source FLAC file as if it were an image file and effectively doubles the file size for the resulting m4a. (I am converting from FLAC to ALAC.)

    None of this happens if you run the converter from within the graphical shell and use the same ID Tag Processing settings.

    The same kind of thing was happening with the released version of the dspeffects in 12.4 (but only -importart was available in that case), which is what made me go look at the beta release.

    Best regards,

    --dsdreamer.
  • dsdreamer

    • Mar 2008
    • 9

    #2
    Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

    As a more concrete example, the following batch script works, to convert my FLAC to ALAC with embedded artwork in each output file, but it really shouldn't!

    Code:
    @echo off
    for %%F in (*.flac) do IF NOT EXIST "%%~nF.m4a" (IF EXIST folder.jpg ren folder.jpg "%%Ffolder.jpg" && "C:\Program Files\Illustrate\dBpoweramp\CoreConverter.exe" -dspeffect1="ID Tag Processing=-case={qt}0{qt} -exportart={qt}{qt} -importart={qt}folder.jpg{qt}" -infile="%%F" -outfile="%%~nF.m4a" -convert_to="Apple Lossless" && if exist "%%Ffolder.jpg" ren "%%Ffolder.jpg" folder.jpg)
    As you can see, I am renaming folder.jpg to the a filename consisting of the input filename concatenated with folder.jpg before each conversion and renaming it back afterwards. This is my current workaround.

    --dsdreamer.

    Comment

    • LtData
      dBpoweramp Supporter
      • May 2004
      • 8288

      #3
      Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

      If you try:
      CoreConverter.exe" -dspeffect1="ID Tag Processing= -exportart={qt}test.jpg{qt}" does that make a test.jpg?
      Lt. Data

      [URL="http://forum.dbpoweramp.com/showthread.php?t=13091"]Need to find your version?[/url]
      [url=http://forum.dbpoweramp.com/showthread.php?t=17415]dBpoweramp Renaissance[/url]
      Please don't PM me for tech support.

      Comment

      • dsdreamer

        • Mar 2008
        • 9

        #4
        Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

        Originally posted by LtData
        If you try:
        CoreConverter.exe" -dspeffect1="ID Tag Processing= -exportart={qt}test.jpg{qt}" does that make a test.jpg?
        I think I answered that question in my original post, but to make sure it is clear what I am saying, see the following for an exact log what happens

        Code:
        F:\old_flac\ATRICK~1>dir
         Volume in drive F is Backup
         Volume Serial Number is 0CDA-C965
        
         Directory of F:\old_flac\ATRICK~1
        
        03/16/2008  09:00 AM    <DIR>          .
        03/16/2008  09:00 AM    <DIR>          ..
        03/16/2008  08:57 AM        40,344,042 01 Dance on a Volcano.flac
        08/24/2007  11:52 AM        38,455,510 02 Entangled.flac
        08/24/2007  11:53 AM        43,971,270 03 Squonk.flac
        08/24/2007  11:53 AM        41,347,727 04 Mad Mad Moon.flac
        08/24/2007  11:53 AM        43,146,506 05 Robbery, Assault & Battery.flac
        08/24/2007  11:53 AM        48,535,229 06 Ripples.flac
        08/24/2007  11:53 AM        28,541,915 07 A Trick of the Tail.flac
        08/24/2007  11:53 AM        39,070,253 08 Los Endos.flac
        03/16/2008  02:11 AM               398 convert.bat
        03/16/2008  09:00 AM               225 convert1.bat
        03/16/2008  01:13 AM            11,619 folder.jpg
                      11 File(s)    323,424,694 bytes
                       2 Dir(s)  41,399,521,280 bytes free
        
        F:\old_flac\ATRICK~1>convert1.bat
        
        F:\old_flac\ATRICK~1>"C:\Program Files\Illustrate\dBpoweramp\CoreConverter.exe"-dspeffect1="ID Tag Processing=-exportart={qt}test.jpg{qt}" -infile="01 Dance o a Volcano.flac" -outfile="01 Dance on a Volcano.m4a" -convert_to="Apple Lossles"
        
        dBpoweramp Music Converter           (C) 2007 Illustrate Ltd
        
        Encoding: Apple Lossless
        Audio Source: 01 Dance on a Volcano.flac
        Audio Destination: 01 Dance on a Volcano.m4a
        DSP Effects: ID Tag Processing
        
         0%-----------25%-----------50%-----------75%-----------100%
         ***********************************************************
        
        Writing ID Tags: Done
        Conversion completed in 11.9 seconds x29 realtime encoding
        F:\old_flac\ATRICK~1>dir
         Volume in drive F is Backup
         Volume Serial Number is 0CDA-C965
        
         Directory of F:\old_flac\ATRICK~1
        
        03/16/2008  09:01 AM    <DIR>          .
        03/16/2008  09:01 AM    <DIR>          ..
        03/16/2008  08:57 AM        40,344,042 01 Dance on a Volcano.flac
        03/16/2008  09:01 AM        40,855,440 01 Dance on a Volcano.m4a
        03/16/2008  09:01 AM            11,619 01 Dance on a Volcano.m4atest.jpg
        08/24/2007  11:52 AM        38,455,510 02 Entangled.flac
        08/24/2007  11:53 AM        43,971,270 03 Squonk.flac
        08/24/2007  11:53 AM        41,347,727 04 Mad Mad Moon.flac
        08/24/2007  11:53 AM        43,146,506 05 Robbery, Assault & Battery.flac
        08/24/2007  11:53 AM        48,535,229 06 Ripples.flac
        08/24/2007  11:53 AM        28,541,915 07 A Trick of the Tail.flac
        08/24/2007  11:53 AM        39,070,253 08 Los Endos.flac
        03/16/2008  02:11 AM               398 convert.bat
        03/16/2008  09:00 AM               225 convert1.bat
        03/16/2008  01:13 AM            11,619 folder.jpg
                      13 File(s)    364,291,753 bytes
                       2 Dir(s)  41,358,651,392 bytes free
        
        F:\old_flac\ATRICK~1>dir
        There is no test.jpg file, but a "01 Dance on a Volcano.m4atest.jpg" exists instead.

        --dsdreamer

        Comment

        • Spoon-
          Administrator
          • Apr 2002
          • 46029

          #5
          Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

          Switch on Music Converter Debug (in dbpoweramp configuration) to see the CLI that dMC is passing into coreconverter.
          Spoon-
          www.dbpoweramp.com

          Comment

          • dsdreamer

            • Mar 2008
            • 9

            #6
            Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

            Originally posted by Spoon
            Switch on Music Converter Debug (in dbpoweramp configuration) to see the CLI that dMC is passing into coreconverter.
            I've looked, and it doesn't give the exact CLI.

            Here is the debug information when running from the DOS CLI

            Code:
            "C:\Program Files\Illustrate\dBpoweramp\CoreConverter.exe" -dspeffect1="ID Tag Processing=-case={qt}0{qt} -exportart={qt}{qt} -importart={qt}folder.jpg{qt}" -infile="01. Dance on a Volcano.flac" -outfile="01. Dance on a Volcano.m4a" -convert_to="Apple Lossless"
            Results in:

            Code:
            Splitting Command Line:Done
            ->->  [cldBCodecHandler::FindDecoder]
                Checking Decoder 'C:\Program Files\Illustrate\dBpoweramp\decoder\FLAC.dll' for extension '.flac'
            Decodes  [clDecoder::Get]
              <<< Match, using decoder
              Using Registry Cached Decoder: C:\Program Files\Illustrate\dBpoweramp\decoder\FLAC.dll
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            <-<-  [cldBCodecHandler::FindDecoder]
            ->->  [cldBCodecHandler::LoadEncoder]
              Loading Encoder 'C:\Program Files\Illustrate\dBpoweramp\encoder\Apple Lossless.DLL'
            <-<-  [cldBCodecHandler::LoadEncoder]
            ->->  [dBCoreConverter::StripCoreConverterCmds]
            <-<-  [dBCoreConverter::StripCoreConverterCmds]
            SendRawUnCompressed  [clEncoder::Get]
            IsLive  [clDSP::Get]
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            NeedHQAudio  [clEncoder::Get]
            ->->  [clDecoder::Open]
              Opening file '01. Dance on a Volcano.flac' for read access: Opened
              Init FLAC: 
              Reading Meta Data: 
               contained 9 tags:
            			album: A Trick of the Tail [Remastered]
            			artist: Genesis
            			COMMENT: ExactAudioCopy v0.95b4
            			Year: 1976
            			DISCID: 6F0BFF08
            			GENRE: Art Rock, Prog Rock
            			title: Dance on a Volcano
            			totaltracks: 8
            			Track: 1
              ->->  [clDecoder::ReadIDTags]
              <-<-  [clDecoder::ReadIDTags]
              ->->  [clDecoder::FillAudioProps]
            	Encoder: FLAC reference libFLAC 1.2.0 20070715
            	Sample Count: 15,642,564
            	ID Tag: Vorbis Comments
            	Contains: CRC, ID Tag [Vorbis Comments]
              <-<-  [clDecoder::FillAudioProps]
              ->->  [clDecoder::FillAudioInfo]
                Uncompressed WFX (sent to db): Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 176400  Block Align: 4  CB Size: 0
                Audio Length: 354706 mili-seconds  40262383 bytes  1411 kbps
              <-<-  [clDecoder::FillAudioInfo]
              Creating Decode Buffers: Created
            <-<-  [clDecoder::Open]
            ->->  [clDSP::BeginConversion]
            <-<-  [clDSP::BeginConversion]
            ->->  [clEncoder::BeginConversion]
              Converting to '01. Dance on a Volcano.m4a' encoder settings ''
            <-<-  [clEncoder::BeginConversion]
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            Encoding To: Apple Lossless
            Encoder Cmd Line: 
            DSP Effects:
                ID Tag Processing: -case="0" -exportart="" -importart="folder.jpg"
            
            ============= CONVERSION BEGIN =============
            ============= CONVERSION END =============
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            ->->  [dBCoreConverter::CloseDecoder]
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            ->->  [clDSP::EndConversion]
            <-<-  [clDSP::EndConversion]
            ->->  [clEncoder::EndConversion]
            <-<-  [clEncoder::EndConversion]
              ->->  [dBCoreConverter::IDTagWriter]
                ->->  [cldBCodecHandler::FindDecoder]
                    Checking Decoder 'C:\Program Files\Illustrate\dBpoweramp\decoder\m4a.dll' for extension '.m4a'
            Decodes  [clDecoder::Get]
                  <<< Match, using decoder
                  Using Registry Cached Decoder: C:\Program Files\Illustrate\dBpoweramp\decoder\m4a.dll
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
                <-<-  [cldBCodecHandler::FindDecoder]
            IDTags  [clDecoder::Set]
              <-<-  [dBCoreConverter::IDTagWriter]
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            ->->  [clDSP::AfterConversion]
            <-<-  [clDSP::AfterConversion]
              Conversion completed in 11.9 seconds x29 realtime encoding
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            This one didn't manage to import the album art.

            But doing it from withing dMC graphical UI produced:

            Code:
            Splitting Command Line:Done
            ->->  [dBCoreConverter::ReaddBCommandFile]
            <-<-  [dBCoreConverter::ReaddBCommandFile]
            ->->  [cldBCodecHandler::FindDecoder]
                Checking Decoder 'C:\Program Files\Illustrate\dBpoweramp\decoder\FLAC.dll' for extension '.flac'
            Decodes  [clDecoder::Get]
              <<< Match, using decoder
              Using Registry Cached Decoder: C:\Program Files\Illustrate\dBpoweramp\decoder\FLAC.dll
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            <-<-  [cldBCodecHandler::FindDecoder]
            BatchID  [clDecoder::Set]
            ->->  [cldBCodecHandler::LoadEncoder]
              Loading Encoder 'C:\Program Files\Illustrate\dBpoweramp\encoder\Apple Lossless.DLL'
            <-<-  [cldBCodecHandler::LoadEncoder]
            BatchID  [clEncoder::Set]
            ->->  [dBCoreConverter::StripCoreConverterCmds]
            <-<-  [dBCoreConverter::StripCoreConverterCmds]
            SendRawUnCompressed  [clEncoder::Get]
            IsLive  [clDSP::Get]
            BatchID  [clDSP::Set]
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            NeedHQAudio  [clEncoder::Get]
            ->->  [clDecoder::Open]
              Opening file 'D:\scratch\A Trick of the Tail [Remastered]\01. Dance on a Volcano.flac' for read access: Opened
              Init FLAC: 
              Reading Meta Data: 
               contained 9 tags:
            			album: A Trick of the Tail [Remastered]
            			artist: Genesis
            			COMMENT: ExactAudioCopy v0.95b4
            			Year: 1976
            			DISCID: 6F0BFF08
            			GENRE: Art Rock, Prog Rock
            			title: Dance on a Volcano
            			totaltracks: 8
            			Track: 1
              ->->  [clDecoder::ReadIDTags]
              <-<-  [clDecoder::ReadIDTags]
              ->->  [clDecoder::FillAudioProps]
            	Encoder: FLAC reference libFLAC 1.2.0 20070715
            	Sample Count: 15,642,564
            	ID Tag: Vorbis Comments
            	Contains: CRC, ID Tag [Vorbis Comments]
              <-<-  [clDecoder::FillAudioProps]
              ->->  [clDecoder::FillAudioInfo]
                Uncompressed WFX (sent to db): Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 176400  Block Align: 4  CB Size: 0
                Audio Length: 354706 mili-seconds  40262383 bytes  1411 kbps
              <-<-  [clDecoder::FillAudioInfo]
              Creating Decode Buffers: Created
            <-<-  [clDecoder::Open]
            ->->  [clDSP::BeginConversion]
            <-<-  [clDSP::BeginConversion]
            ->->  [clEncoder::BeginConversion]
              Converting to 'D:\scratch\A Trick of the Tail [Remastered]\01. Dance on a Volcano.m4a.tmp.m4a' encoder settings ''
            <-<-  [clEncoder::BeginConversion]
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            Encoding To: Apple Lossless
            Encoder Cmd Line: 
            DSP Effects:
                ID Tag Processing: -case="0" -exportart="(none)" -importart="folder.jpg"
            
            ============= CONVERSION BEGIN =============
            ============= CONVERSION END =============
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            ->->  [dBCoreConverter::CloseDecoder]
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            ->->  [clDSP::EndConversion]
            <-<-  [clDSP::EndConversion]
            ->->  [clEncoder::EndConversion]
            <-<-  [clEncoder::EndConversion]
              ->->  [dBCoreConverter::IDTagWriter]
                ->->  [cldBCodecHandler::FindDecoder]
                    Checking Decoder 'C:\Program Files\Illustrate\dBpoweramp\decoder\m4a.dll' for extension '.m4a'
            Decodes  [clDecoder::Get]
                  <<< Match, using decoder
                  Using Registry Cached Decoder: C:\Program Files\Illustrate\dBpoweramp\decoder\m4a.dll
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
                <-<-  [cldBCodecHandler::FindDecoder]
            IDTags  [clDecoder::Set]
              <-<-  [dBCoreConverter::IDTagWriter]
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            Communicate  [clDecoder::Get]
            Communicate  [clEncoder::Get]
            ->->  [clDSP::AfterConversion]
            <-<-  [clDSP::AfterConversion]
              Conversion completed in 14.4 seconds x24 realtime encoding
            ->->  [clDecoder::Close]
            <-<-  [clDecoder::Close]
            But this time folder.jpg was found and added to the output file.

            In other words, both command lines look correct but only one of them behaves correctly.

            --dsdreamer

            Comment

            • Spoon-
              Administrator
              • Apr 2002
              • 46029

              #7
              Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

              Your first one:

              ID Tag Processing: -case="0" -exportart="" -importart="folder.jpg"


              2nd one:

              ID Tag Processing: -case="0" -exportart="(none)" -importart="folder.jpg"
              Spoon-
              www.dbpoweramp.com

              Comment

              • dsdreamer

                • Mar 2008
                • 9

                #8
                Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

                Originally posted by Spoon
                Your first one:

                ID Tag Processing: -case="0" -exportart="" -importart="folder.jpg"


                2nd one:

                ID Tag Processing: -case="0" -exportart="(none)" -importart="folder.jpg"
                Yes, but even if I fix my command line to be exactly as you propose, it still doesn't work.

                Code:
                "C:\Program Files\Illustrate\dBpoweramp\CoreConverter.exe" -dspeffect1="ID Tag Processing=-case={qt}0{qt} -exportart={qt}(none){qt} -importart={qt}folder.jpg{qt}" -infile="01. Dance on a Volcano.flac" -outfile="01. Dance on a Volcano.m4a" -convert_to="Apple Lossless"
                Does not read the folder.jpg and embed it as you can tell by the file sizes in the following log.

                Code:
                D:\scratch\ATRICK~1>"C:\Program Files\Illustrate\dBpoweramp\CoreConverter.exe" -
                dspeffect1="ID Tag Processing=-case={qt}0{qt} -exportart={qt}(none){qt} -importa
                rt={qt}folder.jpg{qt}" -infile="01. Dance on a Volcano.flac" -outfile="01. Dance
                 on a Volcano.m4a" -convert_to="Apple Lossless"
                
                dBpoweramp Music Converter           (C) 2007 Illustrate Ltd
                
                Encoding: Apple Lossless
                Audio Source: 01. Dance on a Volcano.flac
                Audio Destination: 01. Dance on a Volcano.m4a
                DSP Effects: ID Tag Processing
                
                 0%-----------25%-----------50%-----------75%-----------100%
                 ***********************************************************
                
                Writing ID Tags: Done
                Conversion completed in 11.9 seconds x29 realtime encoding
                
                D:\scratch\ATRICK~1>dir
                 Volume in drive D is Music
                 Volume Serial Number is D4ED-7E7E
                
                 Directory of D:\scratch\ATRICK~1
                
                03/18/2008  08:08 PM    <DIR>          .
                03/18/2008  08:08 PM    <DIR>          ..
                08/24/2007  11:52 AM        40,262,383 01. Dance on a Volcano.flac
                03/18/2008  08:08 PM        [U]40,843,797[/U] 01. Dance on a Volcano.m4a
                08/24/2007  11:52 AM        38,455,510 02. Entangled.flac
                08/24/2007  11:53 AM        43,971,270 03. Squonk.flac
                08/24/2007  11:53 AM        41,347,727 04. Mad Mad Moon.flac
                08/24/2007  11:53 AM        43,146,506 05. Robbery, Assault & Battery.flac
                08/24/2007  11:53 AM        48,535,229 06. Ripples.flac
                08/24/2007  11:53 AM        28,541,915 07. A Trick of the Tail.flac
                08/24/2007  11:53 AM        39,070,253 08. Los Endos.flac
                03/18/2008  08:05 PM               269 convert1.bat
                08/26/2007  04:54 PM            [U]11,619[/U] folder.jpg
                              11 File(s)    364,186,478 bytes
                               2 Dir(s)  52,814,114,816 bytes free
                
                D:\scratch\ATRICK~1>rem use GUI to do the same thing
                
                D:\scratch\ATRICK~1>dir
                 Volume in drive D is Music
                 Volume Serial Number is D4ED-7E7E
                
                 Directory of D:\scratch\ATRICK~1
                
                03/18/2008  08:17 PM    <DIR>          .
                03/18/2008  08:17 PM    <DIR>          ..
                08/24/2007  11:52 AM        40,262,383 01. Dance on a Volcano.flac
                03/18/2008  08:17 PM        [U]40,855,440[/U] 01. Dance on a Volcano.m4a
                08/24/2007  11:52 AM        38,455,510 02. Entangled.flac
                08/24/2007  11:53 AM        43,971,270 03. Squonk.flac
                08/24/2007  11:53 AM        41,347,727 04. Mad Mad Moon.flac
                08/24/2007  11:53 AM        43,146,506 05. Robbery, Assault & Battery.flac
                08/24/2007  11:53 AM        48,535,229 06. Ripples.flac
                08/24/2007  11:53 AM        28,541,915 07. A Trick of the Tail.flac
                Is there an issue becaue I am using the new beta dspeffects with the relased version of the dmC program?

                --dsdreamer

                Comment

                • Spoon-
                  Administrator
                  • Apr 2002
                  • 46029

                  #9
                  Re: CoreConverter CLI prepends track filename to strings in ID Tag Processing -export

                  Have you tried setting the active directory (folder) to the same location as your audio file?
                  Spoon-
                  www.dbpoweramp.com

                  Comment

                  Working...