This is probably a PHP and/or Perl job. I'll consider a Java solution too.
We need a PHP/Perl script(s) that reads a SWF file that contains nothing but audio spread across the timeline AND THEN writes a SWF file that contains a subset of the read SWF file (defined as a contiguous range of frames within the read file).
The script(s) need to:
- Accept at least these four parameters (if script requires passing other parameters, developer can explain): 1) The read file path, 2) The write file path, 3) The start frame in the read file, 4) The end frame in the read file.
- Read both compressed and uncompressed SWF formats.
- Reproduce read file global parameters in the write file. For example, if the read file is 2fps then the write file should be 2fps, audio settings (compression, rate, etc.) should be the same, movie compression the same, player version same, etc.
- Run under PHP 5. If Perl used, we can add whatever modules are needed.
- Preferably not require any commercial add-ons for PHP or the server. But we can consider it if necessary.
For Example: I have a SWF file named "testfile1.swf." This file is a SWF at 2fps, with 64 frames, and consists of a single track of audio spread across the timeline. I need a new file named "testfile1_21-28.swf." that consists of just the audio in frames 21through 28 (8 frames). The new file will be a SWF at 2fps, with 8 frames, consisting of a single track of audio spread across the timeline. So, the PHP script(s) need to be able to read [url removed, login to view], capture header data plus the audio data in frames 21-28 and then write them all to testfile1_21-28.swf.