views:

149

answers:

5

It's possible?

I don't need the complete solution, just an hint on how to do.

Everything is appreciated, thanx.

+3  A: 

It would be simpler to convert the video into Flash video and just use one of the many Flash video players out there. There is also an ffmpeg api for PHP, this would be a good place to start.

squeeks
+1  A: 

Call a command line transcoder like Mencoder or vlc. Alternatively, look for a PHP library which allows you to access a library like ffmpeg.

Aaron Digulla
+3  A: 

ffmpeg is a great library for this sort of thing. Here's a walkthrough of the process:

http://vexxhost.com/blog/2007/05/20/how-to-convertencode-files-to-flv-using-ffmpeg-php/

brianreavis
A: 

Try FFmpeg. Check the link

Himadri
+2  A: 

Assuming you have ffmpeg installed, you can do this:

<?php
   define('FFMPEG_LIBRARY', '/usr/local/bin/ffmpeg ');
   $exec_string = FFMPEG_LIBRARY.' -i inputfile.avi outputfile.flv';
   exec($exec_string);
?>
Svenstaro