title
Products            Buy            Support Forum            Professional            About            Codec Central
 

how to add silence to mp3 or flac files through scripting

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

    • May 2005
    • 8

    how to add silence to mp3 or flac files through scripting

    Hello

    I am not currently a dbpoweramp user yet so this may be a stupid question, but I have looked elsewhere on this site and haven't found the information needed.

    I have a requirement to add silence to mp3 or flac files, either at the beginning or end in exactly the same way that can be achieved using the DSP effect "add silence" available in the GUI. I need to access this functionality in a vbscript program. Can anyone explain how to do this.

    Thanks in advance
    Rob
  • saikosounds

    • May 2005
    • 8

    #2
    Re: how to add silence to mp3 or flac files through scripting

    Hello

    I have now purchased the product and am a registsred user.

    Could someone please explain, or point me to somewhere which shows, or post an example of, how to add silence through scripting or another non GUI based method.

    Alternatively if someone knows that this is impossible, please can you let me know. I'm spending several hours per day for the last few days trying to figure this out.

    Thanks in advance
    Rob

    Comment

    • LtData
      dBpoweramp Guru

      • May 2004
      • 8288

      #3
      Re: how to add silence to mp3 or flac files through scripting

      This asks another question:
      Can DSP effects be accessed via scripting or command line?
      Right now, the answer looks like no but Spoon will have the final work on this.

      Comment

      • ChristinaS
        dBpoweramp Guru

        • Apr 2004
        • 4097

        #4
        Re: how to add silence to mp3 or flac files through scripting

        Originally posted by LtData
        This asks another question:
        Can DSP effects be accessed via scripting or command line?
        Right now, the answer looks like no but Spoon will have the final work on this.
        I haven't looked at this stuff, but maybe you can get some information here: http://www.dbpoweramp.com/developer.htm . Look at the bottom of the page.

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 44505

          #5
          Re: how to add silence to mp3 or flac files through scripting

          If you setup DSP effects to add silence then the last settings will be used for scripting.
          Spoon
          www.dbpoweramp.com

          Comment

          • saikosounds

            • May 2005
            • 8

            #6
            Re: how to add silence to mp3 or flac files through scripting

            Thanks for the replies !

            We wish to use different settings each time we encode. Is this possible ?

            also i'd like to know if we can add silence without encoding ?

            Rob

            Comment

            • LtData
              dBpoweramp Guru

              • May 2004
              • 8288

              #7
              Re: how to add silence to mp3 or flac files through scripting

              Yes, you can change the settings every time you encode. However, you will have to reencode the file to add the silence, I think.

              Comment

              • saikosounds

                • May 2005
                • 8

                #8
                Re: how to add silence to mp3 or flac files through scripting

                OK great ! Thanks for the info....

                so.....this takes me back to the original post...how do we actually do this using scripting. Can you post an example, or is there some documentation on it ?

                Comment

                • saikosounds

                  • May 2005
                  • 8

                  #9
                  Re: how to add silence to mp3 or flac files through scripting

                  Hello again !

                  OK, we have been experimenting further....Can you please confirm if the scripting DLL works as an ASP component ? Because it doesn't seem to...it times out on the call to AddFromFile. Or perhaps we are doing it wrong ? Here is an example which times out:

                  Set dMC = Server.CreateObject("dMCScripting.Converter")
                  dMC.ConvertToFolder = True
                  Call dMC.AddFromFile("C:\temp\04.wav")
                  Call dMC.GoConversion("MP3 (Lame)", True, False, False, False)
                  Set dMC = nothing

                  Thanks in advance
                  Rob

                  Comment

                  • Spoon
                    Administrator
                    • Apr 2002
                    • 44505

                    #10
                    Re: how to add silence to mp3 or flac files through scripting

                    ASP will have security limitations.
                    Spoon
                    www.dbpoweramp.com

                    Comment

                    • saikosounds

                      • May 2005
                      • 8

                      #11
                      Re: how to add silence to mp3 or flac files through scripting

                      We've given full permissions to the iusr account to both the working directory and the dmcscripting.dll and it still times out - note that it is actually timing out, not just reporting a permissions or access error.

                      is it possible to use this as an asp component at all?

                      Comment

                      • LtData
                        dBpoweramp Guru

                        • May 2004
                        • 8288

                        #12
                        Re: how to add silence to mp3 or flac files through scripting

                        Probably a limitation in the user accessing a library. Have you tried running it from an Administrator account? As for documentation about scripting dMC, try here: http://www.dbpoweramp.com/developer-scripting-dmc.htm

                        Comment

                        • Napalm

                          • Jan 2006
                          • 1

                          #13
                          Re: how to add silence to mp3 or flac files through scripting

                          Hello SaikoSounds,
                          Quick question on wether or not you have been able to get this to work in an ASP page. I am currently using scripts in VBS, however I would love to be able to pass some parameters from an ASP page and have the conversion triggered from there.
                          Please let me know if you've been able to get it to work under ASP.
                          Thanks

                          Comment

                          Working...

                          ]]>