PDA

View Full Version : how to add silence to mp3 or flac files through scripting



saikosounds
05-02-2005, 03:52 AM
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
05-07-2005, 12:22 AM
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

LtData
05-07-2005, 12:28 AM
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.

ChristinaS
05-07-2005, 02:33 AM
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.

Spoon
05-08-2005, 11:04 AM
If you setup DSP effects to add silence then the last settings will be used for scripting.

saikosounds
05-09-2005, 10:25 PM
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

LtData
05-09-2005, 10:55 PM
Yes, you can change the settings every time you encode. However, you will have to reencode the file to add the silence, I think.

saikosounds
05-10-2005, 01:17 AM
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 ?

saikosounds
05-10-2005, 05:25 AM
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

Spoon
05-10-2005, 03:31 PM
ASP will have security limitations.

saikosounds
05-10-2005, 11:35 PM
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?

LtData
05-11-2005, 12:04 AM
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

Napalm
01-30-2006, 06:32 PM
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