title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Batch Processing from file

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

    • Nov 2007
    • 7

    Batch Processing from file

    I have a text file with a list of files I wish to convert (full path names).

    Is it possible to feed this list of files to dbpowerAMP, maybe via the command line?

    I know I could use the batch tool GUI but it would take quite a while to go through and select the specific files that I wish to convert.

    Thanks!
  • Spoon
    Administrator
    • Apr 2002
    • 44574

    #2
    Re: Batch Processing from file

    If you can program with Visual Basic it is possible to use scripting, or commandline (you would have to read each line and ire up the conversion engine)
    Spoon
    www.dbpoweramp.com

    Comment

    • pFREDD

      • Nov 2007
      • 7

      #3
      Re: Batch Processing from file

      Thanks -

      I ended up writing a perl program and using it's COM function to interface to dbpowerAMP.

      One issue I ran into is that the COM reference (at http://www.dbpoweramp.com/developer-scripting-dmc.htm ) says that any missing folders will be created by dMCScripting.Converter. However, I found that not to be the case. I had to create the directories manually before the conversion worked.

      Other than that, everything worked great.

      Thanks!

      Comment

      • Des

        • Jul 2007
        • 36

        #4
        Re: Batch Processing from file

        Originally posted by pFREDD
        Thanks -

        I ended up writing a perl program and using it's COM function to interface to dbpowerAMP.
        Would you mind sharing it with the forum. I'm always on the look out for stuff to pinch

        Comment

        • pFREDD

          • Nov 2007
          • 7

          #5
          Re: Batch Processing from file

          Here is the relevant code from my program:
          Code:
          #
          # Sample on calling dbpowerAMP OLE module from a PERL program
          #
          
          use WIN32::OLE;
          
          my $SourceFile = "C:\\music\\file.wav"; # File top be converted
          my $DestFile = "C:\\newmusic\\newfile.mp3"; # Destination file name
          my $ErrorFile = "C:\\temp\\converterror.txt"; # Any converter errors are written to this file
          
          #Initialize OLE Object
          $ex = Win32::OLE->new('dMCScripting.Converter') or die "Error opening OLE Object\n";
          
          # Call OLE Routine - NOTE: The last parameter can also be "" for no error file
          $ex->Convert($SorceFile, $DestFile, "mp3 (Lame)", '-b=128 -freq=44100" -channels="joint stereo"', $ErrorFile);
          
          # Clean up
          undef $ex;

          Comment

          • Des

            • Jul 2007
            • 36

            #6
            Re: Batch Processing from file

            Thankyou

            Comment

            Working...

            ]]>