SDK for saving Macromedia Flash (SWF) files
Macromedia Flash SWF format is used for creation of different kinds of presentations, animations, games, interactive web sites and other multimedia applications. Today this format is the most popular format for delivering users multimedia content on different platforms through internet. In our company we have created special SDK which allows writing data into SWF files. Our SDK supports all the abilities of the SWF data format including writing video (AVI, ASF, WMV and MPEG formats) and audio data (MP3 and WAV formats), Sprites and basic graphic primitives like lines, rectangles, ellipses, and also some action tags and texts which can be imported and edited in Macromedia Flash
SDK uses PCM and MP3 audio data formats to save audio into SWF file. All audio streams from video clip will always be converted into MP3. For video data decompression SDK uses decompressors installed in the system. Our SDK can save video stream into SWF file without using DirectX. Currently supports the FLV, AVI, ASF and WMV files.
SDK Functionality
- Save images
- Allow reuse background in all slides with the same background
- Save texts editable in Macromedia Flash
- Save Symbols (Greek characters and special language characters)
- Support font properties (Bold, Italics, Underline, Subscript, Superscript)
- Save Character Bullets and Picture Bullets
- Save URL links
- Save predefined animation effects for slide Transition and objects animation effects. Effect names are the same as in Microsoft PowerPoint:
Entrance: Appear, Box, Circle, Diamond, Flash Once, Peek In, Random Bars, Split, Wipe, Blinds, Checkerboard, Crawl, Dissolve, Fly, Plus, Strips
Exit: Blinds, Box, Checkerboard, Circle, Crawl Out, Diamond, Disappear, Dissolve Out, Flash Once, Fly Out, Peek Out, Plus, Random Bars, Split, Strips, Wipe Slide
Transitions: Blinds Horizontal, Blinds Vertical, Box In, Box Out, Checkerboard Across, Checkerboard Down, Cover Left, Cover Right, Cover Up, Cover Down, Cover Left-Up, Cover Left-down, Cover Right-Up, Cover Right-Down, Cut, Cut through Black, Dissolve
Entrance: Expand, Fade, Faded Zoom Exit: Contract, Fade, Faded Zoom Slide
Transitions: Fade Smoothly, Push Down, Push Left, Push Right, Push Up, Random Bars Horizontal, Random Bars Vertical, Shape Circle, Shape Diamond, Shape Plus, Split Horizontal In, Split Horizontal Out, Split Vertical Out, Split Vertical In
Entrance: Ascend, Center Revolve, Compress, Descend, Ease In, Rise Up, Spinner, Stretch, Zoom
Exit: Ascend, Center Revolve, Collapse, Descend, Ease Out, Sink Down, Spinner, Stretchy, Zoom
Slide Transitions: Strips Left Down, Strips Right Down, Strips Left Up, Strips Right Up, Uncover Down, Uncover Left, Uncover Right, Uncover Up, Uncover Left Up, Uncover Left Down, Uncover Right Up, Uncover Right Down
Entrance: Credits, Float, Fold, Glide, Light Speed, Magnify, Pinwheel, Swivel, Thread
Exit: Credits, Float, Fold, Glide, Light Speed, Magnify, Pinwheel, Swivel, Thread Slide
Transitions: Wipe Down, Wipe Left, Wipe Right, Wipe Up
- Allows saving animations time parameters
- Supports presentation looping
- Save Video clips in AVI, WMV, ASF, MPEG formats
Supported Video formats:
AVI - Audio Video Interleaved
WMV, ASF - Windows Media Video
MPEG - Motion Picture Experts GroupVideo data converting process details:
For video data decompression SDK uses decompressors installed in the system. SDK always generates SWF file with frame rate equal to 12 frames per second (it is the most widely used and recommended frame rate). Initial Video clip can have frame rate that is not equal to 12. Audio stream from video clip converted and stored as described for Audio converting process.
- Save Audio in WAV and MP3 formats
Supported Audio formats:
WAV - any sample rate, mono or stereo
MP3 - any sample rate, mono or stereoRequirements for the proper converting of Audio and Video placed on presentation are:
- All necessary sound card drivers installed
- All necessary video codecs used for preparing video embedded into presentation installed
- Direct X® 8 or higher for converting MPEG2 videos
- Microsoft Windows Media Player® for converting the WMV and ASF videos when no Direct X is installed
Audio data converting process details: SDK uses PCM and MP3 audio data formats to save audio into SWF file. All audio streams from video clip will always be converted to MP3.
To convert sound from various formats to WAV PCM and MP3 we use PCM and MPEG Layer-3 compressors. Those compressors should be installed in the system. Source sound can be supplied in several formats. SDK chooses destination sound format depending on source sound format:
- If source sound is uncompressed WAV PCM then it remains unchanged.
- If source sound is compressed WAV (for example Microsoft ADPCM) then it will be converted to uncompressed WAV PCM.
- If source sound is MP3 then it remains MP3.
If no MPEG Layer-3 codec installed in the system than destination audio data will be in WAV PCM format. Sound files which included into PowerPoint presentation must one of the following sampling rate:
- 5.5 kHz" = 5512 Hz
- 11 kHz" = 11025 Hz
- 22 kHz" = 22050 Hz
- 44 kHz" = 44100 Hz
If sound has nonstandard sampling rate, SDK tries to change it to the closest standard rate. Sound quality can be lost during sound conversion session from one format to another. It happens because different compressors support limited number of 'bit rate'-'channel count'-'sample rate' sets and those sets are not equal. When no Direct X is installed SDK will try to convert audio using the ACM sound converters.
- Allow save different ways of navigation through SWF clip including shape actions (go to the first slide, go to the last slide, go to the slide by it's number, go to the previous slide, go to the next slide, go to the URL, stop the slideshow)
- Create SWF clip with different linear