On Mon, Dec 19, 2005 at 10:10:25AM +0100, Michael Will wrote:
> That happens only when I add a streaming sound to a
> SWF which already has an sound stream, eg:
>
> wget http://www.themeatrix.com/meatrix.swf
>
> swfcombine -Tm meatrix.swf round.swf -o meatrix-new.swf
> swfextract -m meatrix-new.swf
> NOTICE Writing mp3 data to output.mp3
> NOTICE Writing mp3 data to output.mp3
Ok, that makes sense. You add an additional soundstream to
the SWF, hence you get a "unsupported" SWF file with two
sound streams. (I very much doubt the Flash Player will play
both of them, probably it will select the first one, or even
play no sound at all)
So I guess what you need would be a way the strip a soundstream
from an SWF. The following python script should do the trick:
#!/usr/bin/python2.3
import SWF
swf1 = SWF.load("input.swf")
swf2 = SWF.create(version=swf1.version, bbox=swf1.bbox, fps=swf1.fps)
for tag in swf1.tags:
if "SOUNDSTREAM" not in tag.name: # soundstreamhead, soundstreamblock
etc.
swf2.tags += tag
swf2.save("output.swf")
Greetings
Matthias
_______________________________________________
Swftools-common mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/swftools-common