title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Help running Script!

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

    • May 2005
    • 4

    Help running Script!

    I am running the following script against a test.wav file.


    ' Wave Converter


    Set objArgs = WScript.Arguments
    For I = 0 to objArgs.Count - 1
    filepath = filepath & objArgs(I) & " "
    Next

    ' Set Mp3Settings = CreateObject("dMCScripting.Mp3Settings") ' Create Mp3 Object
    ' Call Mp3Settings.Set (128, 44100, 0, 0) ' 160kbps 44.1Khz Stereo CBR


    ' Create dMC Object
    Set dMC = CreateObject("dMCScripting.Converter")

    ' A Returned Compression Codec can be passed onto GoConversion

    cc = dMC.GetCompressions(2) ' Return a Compression Codec (position 0)


    ' Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
    dMC.VolumeNormalize = False
    dMC.PreserveTags = True
    dMC.DeleteSourceFiles = False


    ' Puts converted file into same folder
    dMC.ConvertToFolder = False

    ' Add My Files to Convert
    Call dMC.AddFromFile(filepath)


    ' Convert To Wave (No option page, Want Overwrite page, Want finished, Want Errors)
    Call dMC.GoConversion("Wave", True, True, False, False)

    I get the following error.

    Support for the audio type '.wav' might be obtained at 'Codec Central' ....

    Does anyone know how to fix this error?

    Thanks
  • Spoon
    Administrator
    • Apr 2002
    • 44504

    #2
    Re: Help running Script!

    Try adding a file such as c:\test.wav
    Spoon
    www.dbpoweramp.com

    Comment

    • WickedGeek

      • May 2005
      • 4

      #3
      Re: Help running Script!

      I tried appending a file path with no luck. I copied test.wav to the c root and ran the following command convertwav c:\test.wav. I got the same error message. I must be something simple, just don't know what it is.

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44504

        #4
        Re: Help running Script!

        Try converting that wave file normally with dmc.
        Spoon
        www.dbpoweramp.com

        Comment

        • WickedGeek

          • May 2005
          • 4

          #5
          Re: Help running Script!

          Converting it manually works fine. What does the error mean?

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 44504

            #6
            Re: Help running Script!

            It means the music converter has not been able to load its codecs.
            Spoon
            www.dbpoweramp.com

            Comment

            • WickedGeek

              • May 2005
              • 4

              #7
              Re: Help running Script!

              Any suggestions on why this could be happening? It's working fine when I manually convert. Doesn't dbpoweramp by default has a built in wav file converter? Am I doing something wrong in the code?

              Comment

              • Spoon
                Administrator
                • Apr 2002
                • 44504

                #8
                Re: Help running Script!

                It does and that is the odd part. Try putting your executable or script code in the same folder as musicconverter.exe
                Spoon
                www.dbpoweramp.com

                Comment

                Working...

                ]]>