title
Products            Buy            Support Forum            Professional            About            Codec Central
 

dMCScripting and DSP effects

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • touff-ray

    • Apr 2007
    • 36

    dMCScripting and DSP effects

    Hello,
    I am wondering how I can use DSP effects in a C#/.NET program. Should I add some options to the CompressionCLI string needed by the Convert function or is there another way to do the trick ?

    Touff-Ray
  • KJim

    • May 2006
    • 36

    #2
    Re: dMCScripting and DSP effects

    I seem to remember seeing this in another thread a while back- and I think it isn't possible, which is a real shame. The good thing about r11 was that when you started a scripted conversion, the dialogue gave you the option to add DSP effects at that point manually... is there a way round this, spoon?

    Comment

    • KJim

      • May 2006
      • 36

      #3
      Re: dMCScripting and DSP effects

      Having said that, the scripting page of the support section says:

      "DSP effects can also be activated, pass them in CompressionCLI, see command line documentation."

      Where is this info? I can't seem to find it in any of the docs...

      Comment

      • KJim

        • May 2006
        • 36

        #4
        Re: dMCScripting and DSP effects

        Well, I tried my best:

        Code:
        Set dMC = CreateObject("dMCScripting.Converter")
        Dim CompressionCLI
        CompressionCLI = "-b 64 -channels=""joint stereo"" -dspeffect1=""Grabber=-lengthms={qt}60000{qt} -position={qt}30000{qt}"""
        CompressionCLI = dMC.ShowSettings("mp3 (Lame)", CompressionCLI)
        Set WshShell = CreateObject("WScript.Shell")
        
        Call dMC.Convert("C:\Source\sourcefile.flac", "C:\Destination\testdsp.mp3", "mp3 (Lame)", CompressionCLI, "C:\encodingerrors.txt")
        Call WshShell.Popup("Done.")
        ...doesn't work. It encodes, but no dsp inclusion.

        Ever get the feeling everyone else has been destroyed by a tidal wave and you're the only one left chatting to yourself about scripting dmc in spoon's forum? No? Hello? Anybody? :cry:

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 44509

          #5
          Re: dMCScripting and DSP effects

          Your code is almost right, just that by calling dMC.ShowSettings after adding the DSP commandline is removing the DSP commandline.
          Spoon
          www.dbpoweramp.com

          Comment

          • KJim

            • May 2006
            • 36

            #6
            Re: dMCScripting and DSP effects

            Wicked! That works a treat now:

            Code:
            Set dMC = CreateObject("dMCScripting.Converter")
            Dim CompressionCLI
            CompressionCLI = "-b 64 -channels=""joint stereo"" -dspeffect1=""Grabber=-lengthms={qt}60000{qt} -position={qt}30000{qt}"""
            Set WshShell = CreateObject("WScript.Shell")
            
            Call dMC.Convert("C:\Source\sourcefile.flac", "C:\Destination\testdsp.mp3", "mp3 (Lame)", CompressionCLI, "C:\encodingerrors.txt")
            Call WshShell.Popup("Done.")
            Cheers Spoon!

            Comment

            • touff-ray

              • Apr 2007
              • 36

              #7
              Re: dMCScripting and DSP effects

              Thank you KJim and Spoon ! I am going to try this :komisch12

              Comment

              • touff-ray

                • Apr 2007
                • 36

                #8
                Re: dMCScripting and DSP effects

                It works like a charm
                But now I have two other questions (and I don't want to open a new thread):
                - Is there a way to control how dbpoweramp uses multi-core processors ?
                - Can we retrieve the status of a conversion (e.g. "50% done", or "Finished") ? And if so, how ?

                Touff-Ray

                Comment

                • LtData
                  dBpoweramp Guru

                  • May 2004
                  • 8288

                  #9
                  Re: dMCScripting and DSP effects

                  What do you mean how dMc uses a multi-core processor? Currently, dMC encodes one file per core. I believe the only way to change this is to totally disable multi-core support and only use one core. This can be done only through the Multi-Encoder or the r2 version of the CLI encoder.

                  Comment

                  • Spoon
                    Administrator
                    • Apr 2002
                    • 44509

                    #10
                    Re: dMCScripting and DSP effects

                    Through scripting it will take any free cpu time, if you have 2 processors then have 2 scripting objects.

                    No way of getting the % compelete through scripting.
                    Spoon
                    www.dbpoweramp.com

                    Comment

                    • touff-ray

                      • Apr 2007
                      • 36

                      #11
                      Re: dMCScripting and DSP effects

                      Thank you both for your answers

                      Comment

                      • touff-ray

                        • Apr 2007
                        • 36

                        #12
                        Re: dMCScripting and DSP effects

                        Hi again everyone,
                        I have other (noob) questions about dMCScripting :
                        - Is there a way to know that a conversion is finished ?
                        - Is there another way than checking the log created by the Convert method to retrieve potential errors during conversions ?

                        Touff-Ray

                        Comment

                        • Spoon
                          Administrator
                          • Apr 2002
                          • 44509

                          #13
                          Re: dMCScripting and DSP effects

                          When the conversion finishes your call to .convert returns.
                          Spoon
                          www.dbpoweramp.com

                          Comment

                          Working...

                          ]]>