Swfextract
From Swftools
Current Stable
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] 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
Run using
sh ./extract.sh