SWFTools/swfextract

From aldeid
Jump to navigation Jump to search
DRAFT
This page is still a draft. Thank you for your understanding.
You are here:
swfextract

Description

INCOMPLETE SECTION OR ARTICLE
This section/article is being written and is therefore not complete.
Thank you for your comprehension.

Usage

Syntax

Usage: swfextract [-v] [-n name] [-ijf ids] file.swf

Options

General Options

-v, --verbose
Be more verbose
-o, --output filename
set output filename
-V, --version
Print program version and exit

SWF Sub-element extraction

-n, --name name
instance name of the object (SWF Define) to extract
-i, --id ID
ID of the object, shape or movieclip to extract
-f, --frame frames
frame numbers to extract
-w, --hollow
hollow mode: don't remove empty frames (use with -f)
-P, --placeobject
Insert original placeobject into output file (use with -i)

SWF Font/Text extraction

-F, --font ID
Extract font(s)

Picture extraction

-j, --jpeg ID
Extract JPEG picture(s)
-p, --pngs ID
Extract PNG picture(s)

Sound extraction

-m, --mp3
Extract main mp3 stream
-M, --embeddedmp3
Extract embedded mp3 stream(s)
-s, --sound ID
Extract Sound(s)

Example

Identify objects

Without arguments, swfextract will identify the objects contained in the *.swf file:

$ swfextract zoxdgeysjn6.swf
Objects in file zoxdgeysjn6.swf:
 [-i] 2 Shapes: ID(s) 1, 3
 [-p] 1 PNG: ID(s) 2
 [-F] 1 Font: ID(s) 4
 [-f] 1 Frame: ID(s) 0

Extract objects

Once you have identified the interesting objects, you can extract them using the appropriate argument (specified on the left of the object) and ID (specified on the right of the object).

In the above example, if we want to extract the PNG file, we should issue the following command:

$ swfextract -p 2 zoxdgeysjn6.swf

The above command has extracted the PNG file (output.png):

$ file output.png 
output.png: PNG image data, 250 x 66, 8-bit colormap, non-interlaced

Comments