linux poison RSS
linux poison Email

SWFTools - SWF Manipulation and Creation tools under Linux

SWFTools is a collection of utilities for working with Adobe Flash files (SWF files). The tool collection includes programs for reading SWF files, combining them, and creating them from other content (like images, sound files, videos or sourcecode). SWFTools is released under the GPL. The current collection is comprised of the programs detailed below:

* PDF2SWF - A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas etc. inside your Flash Movie.

* SWFCombine - A tool for inserting SWFs into Wrapper SWFs. (Templates) E.g. for including the pdf2swf SWFs in some sort of Browsing-SWF.

* SWFStrings - Scans SWFs for text data.

* SWFDump - Prints out various informations about SWFs.

* JPEG2SWF - Takes one or more JPEG pictures and generates a SWF slideshow.

* PNG2SWF - Like JPEG2SWF, only for PNGs.

* GIF2SWF - Converts GIFs to SWF. Also able to handle animated gifs.

* WAV2SWF - Converts WAV audio files to SWFs, using the L.A.M.E. MP3 encoder library.

* Font2SWF - Converts font files (TTF, Type1) to SWF.

* SWFBBox - Allows to readjust SWF bounding boxes.

* SWFC - A tool for creating SWF files from simple script files.

* SWFExtract - Allows to extract Movieclips, Sounds, Images etc. from SWF files.

* RFXSWF Library A fully featured library which can be used for standalone SWF generation. Includes support for Bitmaps, Buttons, Shapes, Text, Fonts, Sound etc. It also has support for ActionScript using the Ming ActionCompiler.

Installation:
OpenSuSe user can install SWFTools using "1-click" installer - here
Ubuntu user can download the .deb file from here and install SWFTools using command:
$ sudo dpkg -i swftools_0.9.0-0ubuntu1_i386.deb

Usage:
Extract images/sounds from avatar.swf using swfextract
First list all extractable items, type the following command: swfextract avatar.swf
  
The result is something like:
Objects in file avatar.swf:
 [-i] 3 Shapes: ID(s) 7, 12, 14
 [-i] 6 MovieClips: ID(s) 3, 6, 8, 10, 13, 15
 [-j] 1 JPEG: ID(s) 11
 [-p] 1 PNG: ID(s) 318
 [-s] 3 Sounds: ID(s) 28-30
 [-f] 1 Frame: ID(s) 0
Now you can extract a shape using: swfextract -i 12 avatar.swf -o shape.swf
sound using:  swfextract -s 28 avatar.swf -o sound.wav
PNG image file using:  swfextract -p 318 avatar.swf -o file.png


0 comments:

Post a Comment

Related Posts with Thumbnails