Forum Moderators: coopster

Message Too Old, No Replies

mpeg OR avi ---TO---> SWF with PHP

Is it possible?

         

ryan_b83

8:37 pm on Nov 24, 2006 (gmt 0)

10+ Year Member



Hi, basiclly just wondering if it is possible to convert a movie file to a SWF file with PHP? Of course you could just use MM Flash to do this but if you wanted to be able to do this within a web application, could it be possible?

Thanks,
Ryan

StupidScript

9:18 pm on Nov 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PHP Flash manipulation [us2.php.net]
FreeMovie for PHP [freemovie.sourceforge.net]
PHP's MING [us2.php.net]

Now, about converting files from MPEG et al. to Flash. The above references are tools for creating and manipulating SWF movies using PHP. With those tools (or any one of them), you can add an MPEG et al. file as a sprite or include a reference to the MPEG et al. file, however they do not make it easy to bust out into a frame-by-frame conversion on the fly. There are a few MIME-specific PEAR classes you might be able to occasionally use, like for MP3s, but true conversion will probably need to be accomplished using a more dedicated bit of software, like Turbine Video Encoder [blue-pacific.com], or similar.

You may be able to locate a command line MPEG et al. decompiler, pass the movie to that and compile a new Flash file using the extracted frames, but that's a huge performance hit for a web app.

[edited by: StupidScript at 9:19 pm (utc) on Nov. 24, 2006]