title
Products            Buy            Support Forum            Professional            About            Codec Central
 

scripting problem.. cannot convert from wav to wma

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

    • May 2007
    • 2

    scripting problem.. cannot convert from wav to wma

    Hi,
    Im having problems with my script. I can convert from wav to mp3 without any problem but I cannot convert from wav to wma.
    Here is my script

    Dim dMC
    set dMC = CreateObject("dMCScripting.Converter")
    call dMC.Convert("C:\file.wav","file.wma", "Windows Media Audio 10", "-settings=128 kbps, 44 kHz, 2 channel 16 bit CBR", "C:\dMC_erros.txt")
    set dMC = Nothing

    The -settings cam from the registry.
    I had to remove the double quotes after the -settings=

    I recieve the following error
    Error Creating WMA Profile. [clEncoder::BeginConversion]

    Thanks
    Phil
  • LtData
    dBpoweramp Guru

    • May 2004
    • 8288

    #2
    Re: scripting problem.. cannot convert from wav to wma

    Moved to Developer section of this forum.

    Have you looked at the code examples from here: http://www.dbpoweramp.com/developer/...0vb%20.NET.txt ? Also, check the WMA help file for scripting settings for WMA.

    Comment

    • pchung

      • May 2007
      • 2

      #3
      Re: scripting problem.. cannot convert from wav to wma

      Hi LtData,
      Yes Ive read both docs. but there are'nt any specific examples for wma. Im pretty sure its just a syntax error.. or typo. I am able to convert to mp3.
      Are there any other scripting docs? Do you have a sample of a script that converts to wma?
      Thanks
      Phil

      Comment

      • LtData
        dBpoweramp Guru

        • May 2004
        • 8288

        #4
        Re: scripting problem.. cannot convert from wav to wma

        There aren't specific examples for WMA, no, but it tells you how to set up a script for mp3/wav and then the WMA help file tells you how to set up the command line, which is the same setting for a script, it looks like.

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 44509

          #5
          Re: scripting problem.. cannot convert from wav to wma

          >call dMC.Convert("C:\file.wav","file.wma", "Windows Media Audio 10", "-settings=128 kbps, 44 kHz, 2 channel 16 bit CBR", "C:\dMC_erros.txt")

          You would need a " with settings so it is sent as -settings="....."
          Spoon
          www.dbpoweramp.com

          Comment

          • MiHiR

            • Jun 2007
            • 1

            #6
            Re: scripting problem.. cannot convert from wav to wma

            Hey try using this instead:

            call dMC.Convert("C:\file.wav","file.wma", "Windows Media Audio 10", "-codec={qt}Windows Media Audio 9.2{qt} -settings=128 kbps, 44 kHz, 2 channel mono CBR", "C:\dMC_erros.txt")

            this should work fine.......I've fiddled a lot with it and have got it working, but I'm calling it through command line!!!

            Make sure you have this WMA codec installed:



            Cheers,
            MiHiR

            Comment

            Working...

            ]]>