[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] replacing mp3 with swfcombine
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] replacing mp3 with swfcombine |
Date: |
Sat, 4 Feb 2006 08:45:07 +0100 |
User-agent: |
Mutt/1.5.6i |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Swftools-common] replacing mp3 with swfcombine,
Matthias Kramm <=