Subject:Scripting Extract Region on multiple files
Posted by: Slipperhero
Date:10/8/2008 4:47:05 AM
Hi there, I was wondering if the following is achievable using SF9 scripting: I have about 400 SFX CDs already ripped to a hard drive. Each CD has been ripped as a single audio file, with track marker metadata saved in each file, so basically i have lots of 700Mb files. I now need to split up these files as separate files per track in order to use a particular SFX database tool. I've discovered that the Extract Region feature in SF9 is perfect for this. However as i have so many files to split up, this could potentially take weeks to complete. Is it possible to use a script to automate this? I would not only need to extract regions from all of the files, but also ensure that all the generated files were saved in the appropriate directory, with a name that refers to the original files they derived from. If i could automate this process i would save much time and brain cells! Any suggestions will be most appreciated. Simon Poole |
Subject:RE: Scripting Extract Region on multiple file
Reply by: _TJ
Date:10/8/2008 1:01:14 PM
If I understanding what you are asking. The SDK sample script SaveRegionsAsFiles.cs does this. It does not use Extract Regions, It's easier to just use ISfFileHost.RenderAs() with a time range based on each region in the file. tj |