dharma017
9/14/2015 - 5:18 AM

Extract MP3 from SWF files on Linux (Ubuntu)

Extract MP3 from SWF files on Linux (Ubuntu)

###Extract MP3 from SWF files on Linux (Ubuntu)

We will use a tool called swfextract contained on the package swftools, so first we will install it

sudo apt-get install swftools

Once installed first we will see wich media we can extract from our swf file.

swfextract test.swf

Objects in file test.swf:

[-i] 5 Shapes: ID(s) 7, 14, 22, 23, 28 [-j] 16 JPEGs: ID(s) 1-6, 11-13, 16-21, 27
[-s] 1 Sound: ID(s) 29 [-F] 1 Font: ID(s) 8
[-f] 1 Frame: ID(s) 0
[-m] 1 MP3 Soundstream

Then just use the option between brackets and the ID the element you want to extract, in our example we will extract the sound with ID 29, but you can extract also images if you want

swfextract -s 29 test.swf -o test.mp3

To extract everything use...

swfextract --outputformat "extract_%06d.%s" -a 1- test.swf

For more information, visit here