illustrate
Products            Buy            Support Forum            Registrations            Professional            About           
 

Help running Script!

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Spoon
    replied
    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

    Leave a comment:


  • WickedGeek
    replied
    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?

    Leave a comment:


  • Spoon
    replied
    Re: Help running Script!

    It means the music converter has not been able to load its codecs.

    Leave a comment:


  • WickedGeek
    replied
    Re: Help running Script!

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

    Leave a comment:


  • Spoon
    replied
    Re: Help running Script!

    Try converting that wave file normally with dmc.

    Leave a comment:


  • WickedGeek
    replied
    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.

    Leave a comment:


  • Spoon
    replied
    Re: Help running Script!

    Try adding a file such as c:\test.wav

    Leave a comment:


  • WickedGeek
    started a topic Help running Script!

    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
Working...