Because of the constant attack by the wiki spam bots, accounts that are created and not used will be deleted. If you are a legitimate user, and your IP was blocked, please contact any active administrator - look at Special:RecentChanges and see who is busy fighting spam.
Usage: swfextract [-v] [-n name] [-ijf ids] file.swf
Available 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 -s , --sound ID Extract Sound(s)
How to use it
First, run swfextract file.swf and get whatever the flash application contains. The output looks like:
Objects in file file.swf: [-i] 8 Shapes: ID(s) 2, 5, 7, 9, 11, 13, 15, 17 [-i] 1 MovieClip: ID(s) 18 [-j] 8 JPEGs: ID(s) 1, 4, 6, 8, 10, 12, 14, 16 [-F] 1 Font: ID(s) 3 [-f] 1 Frame: ID(s) 0
These are the objects you will be able to extract. For example, if you want to extract the third jpg (ID = 6) to a file file.jpeg, the command is:
swfextract -j 6 file.swf -o file.jpeg
Bash shell script example to extract a range of sounds
To view the list of sound IDs in file example.swf, run:
swfextract example.swf ... [-s] 20 Sounds: ID(s) 30-50 ...
cat extract.sh for i in $(seq 30 1 50) do swfextract -s $i example.swf -o $i.mp3 done