swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Newbie swfcombine --cat question


From: Matthias Kramm
Subject: Re: [Swftools-common] Newbie swfcombine --cat question
Date: Sat, 7 Feb 2004 19:26:41 +0100
User-agent: Mutt/1.4i

On Thu, Feb 05, 2004 at 08:29:49AM +0000, Duncan Gibb wrote:
> OK, here's a simple example:
> 
>   http://www.duncangibb.com/swf/part_one.swf - slides 1, 2, 3
>   http://www.duncangibb.com/swf/part_two.swf - slides 4, 5, 6
> 
>   http://www.duncangibb.com/swf/combined.swf - output from swfcombine

Yes, these movies contain a fair amount of actionscript indeed.
What is /tracking.asp?
I can't play part_one.swf, btw. most probably because I'm missing
that file.
Anyway, the structure of the file seems to be as follows:
* frames named "S?LS" are loaders for the following slide
* frames named "S?PS" are the actual slides.
So what you can do is:

    swfdump part_one.swf | grep label.*S.PS:
    [001]         0 SHOWFRAME 28 (00:00:02,333) (label "S1PS")
    [001]         0 SHOWFRAME 56 (00:00:04,667) (label "S2PS")
    [001]         0 SHOWFRAME 84 (00:00:06,1000) (label "S3PS")

Now fish out all actual slides with:
   
    swfextract -f 28 part_one.swf -o s1.swf 
    swfextract -f 56 part_one.swf -o s2.swf
    swfextract -f 84 part_one.swf -o s3.swf

Do the same thing with part_two.swf:

    swfdump part_two.swf | grep label.*S.PS
        [...]
    swfextract -f 28 part_two.swf -o s4.swf 
    swfextract -f 56 part_two.swf -o s5.swf
    swfextract -f 84 part_two.swf -o s6.swf

Now you can do 
    swfcombine --cat s1.swf s2.swf s3.swf s4.swf s5.swf s6.swf -o slides.swf

The slides in that movie are now turning automatically-
you most probably also want to link a viewer:

    swfcombine /usr/local/share/swftools/swfs/default_viewer.swf 
viewport=slides.swf

> Really what I want to do is join three files - two halfs of a PowerPoint
> presentation and a Flash movie in the middle.  So a method that works by
> substituting a whole SWF for one slide in one of the PowerPoints would
> be just as good.

That's more easy:

    swfcombine powerpoint.swf -f S3PS=flashmovie.swf

Greetings

Matthias






reply via email to

[Prev in Thread] Current Thread [Next in Thread]