PHP Classes

SWF header parser: Parse header of Flash files to extract metadata

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (10)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-11-05 (8 years ago) RSS 2.0 feedStarStarStarStar 73%Total: 5,271 All time: 442 This week: 1,415Down
Version License PHP version Categories  
swfheader 1.0.0GNU Lesser Genera...3Files and Folders, Flash, Parsers
Description Author  

This class is meant to parse the header of Shockwave Flash animation files (.swf) to extract metadata information like the width and height of animation, compression status and uncompressed size, frame rate and total number of frames.

This class parses Flash files using only PHP code, so no special extension is necessary.

Supports both, compressed and uncompressed SWF Flash movies

Innovation Award  
PHP Programming Innovation award nominee
May 2004
Number 2

Prize: One downloadable copy of PHPEd
Shockwave Flash is a technology that has been growing its popularity in the latest years, especially among Web designers.

It provides a much richer means of presentation of content and user interaction that the traditional HTML based user interface pages.

This characteristic has been motivating many Content Management System developers to add support to integrate Flash animations in their systems.

The Shockwave Flash format is proprietary and is made of binary information. This imposes an additional difficulty to analyze and verify the integrity of the information contained in Flash animation files.

This class provides a basic solution for analyzing Flash animation files by parsing their header information to extract metadata that may be useful for content management systems as well verify the integrity of these files when they are uploaded to the publishing systems.

Manuel Lemos
Picture of Carlos Falo Hervás
Name: Carlos Falo Hervás <contact>
Classes: 10 packages by
Country: Spain Spain
Age: 40
All time rank: 301 in Spain Spain
Week rank: 1757 Down49 in Spain Spain Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE.txt Lic. LGPL license
Accessible without login Plain text file README_EN.txt Doc. English documentation
Plain text file swfheader.class.php Class Base class source code
Accessible without login Plain text file test.php Example Test script

 Version Control Unique User Downloads Download Rankings  
 0%Total:5,271All time:442
 This week:0This week:1,415Down
User Ratings User Comments (4)  
 All time
Really, really nice.
4 years ago (Bruno Tacca)
Awesome class ;) thanks!
4 years ago (Adrian Chiran)
Works well.
6 years ago (F Philip DeGeorge)
Very good class, nice alternative to getimagesize that uses s...
7 years ago (jarosek)