Forum Moderators: coopster

Message Too Old, No Replies

convert video to SWF using PHP?

is that possible?

         

phph

3:02 am on Mar 10, 2006 (gmt 0)

10+ Year Member



Hi guys,

Is there a PHP class that can be used to convert video file to .swf movie. I've seen some sites that play user uploaded videos in flash, so I guess there's a way to do it .. but how? I've also seen some php classes for jpg2swf convertion, but not for video. All help is appreciated!

StupidScript

3:14 am on Mar 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(a) What kind of video file?

(b) Ummm ... probably not yet. The encoding of video, particularly the conversion to a completely different MIME type with proprietary extensions, is a complex task, unlike image conversion. Often, hardware capabilities are required. The closest I've seen is Freemovie-PHP [freemovie.sourceforge.net], but that just makes 'movies' out of JPEGs and such. Maybe there's a conversion utility out there to de-construct a movie into images and then you could build the movie with something like the above, but ... yeesh ... might as well just upload a real movie and link to it.

My 2 cents.

omoutop

9:13 am on Mar 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Perhaps there is no conversion....

it might be possible to open a flash document and inside you project the desired movie (something like loading a flash movie inside flash movie).

Some flash guru might be more of a help in this matter

inveni0

12:49 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



Some webmasters use flash to show movies because it can stream the files. There is no actual conversion process. Visit the flash section of your favorite forum and ask them about streaming video.

phph

9:55 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



So can you use a flash movie to stream any video file to users browser?

StupidScript

10:29 pm on Mar 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Flash doesn't 'import' movie files, like 'at frame 100 load myvacation.mpg'. It needs to convert them into Flash 'movies' during the authoring process ... THEN it can call to them. I believe the extension ends up being .FLV or something. And that's not exactly streaming, but rather a progressive download that feels a lot like streaming.

inveni0

10:32 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



Right. Progressive download is what I meant. It's much like creating a .mpu text file (is .m3u the extension for WMP playlists?) with just your video URL in it. This tricks WMP into playing the file as it downlaods.

(the text file is the playlist file...I can't remember the extension)