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.

Difference between revisions of "Swfextract"

From SWFTools
Jump to: navigation, search
(Removed online Betting link. Cheers for that Alex B! :o/)
(bash script example)
Line 39: Line 39:
 
-s , --sound ID Extract Sound(s)
 
-s , --sound ID Extract Sound(s)
 
</pre>
 
</pre>
 +
 +
 +
'''Bash shell script example to extract a range of sounds:'''
 +
 +
To view the list of sound IDs in file example.swf, run:
 +
<pre>$ swfextract example.swf
 +
 +
...
 +
[-s] 88 Sounds: ID(s) 30-50
 +
...</pre>
 +
 +
<pre>
 +
$ cat extract.sh
 +
 +
for i in $(seq 30 1 50)
 +
do
 +
swfextract -s $i example.swf -o $i.mp3
 +
done
 +
</pre>
 +
 +
'''Run using'''
 +
 +
<pre>sh ./extract.sh</pre>

Revision as of 07:46, 13 October 2010

Current Stable

swfextract man page

Current Git


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)


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] 88 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

Run using

sh ./extract.sh