I have a requirement to compress, convert and generate thumnails from video uploads.
The live server is Linux but for development we are using Windows 7 PC’s both using PHP 5.4.
It seems that ffmpeg is different to ffmpeg-php with ffmpeg-php only being able to generate the thumbnails.
Is there any way to use ffmpeg as a php extension on windows and/or linux?
Is there a compiled dll of ffmpeg-php that is compatible with php 5.4?
Is there a php alternative to ffmpeg for the purpose of the above requirements that will work on Linux and windows?
Thanks
Asa
PHP-FFmpeg or php_ffmpeg.dll is only good for generating thumbnails and querying the properties of a video file. See http://x32.elijst.nl/fftest.php54 for the functions within my php_ffmpeg.dll for PHP 5.4. API reference: http://ffmpeg-php.sourceforge.net/doc/api/
For video compression on a webserver, you’ll have to do system calls to ffmpeg with exec or popen. Some words on this can be found here:
http://ffmpeg.org/trac/ffmpeg/wiki/Using%20FFmpeg%20from%20PHP%20scripts
Late edit: I build php_ffmpeg.dll for all kinds op Windows PHP flavors. See this forum on Apachelounge: http://www.apachelounge.com/viewforum.php?f=6
Another late edit: there is a second PHP extension which uses FFMpeg now:
https://github.com/chung-leong/av/wiki by the maker of http://www.php-qb.net/
I have added php_av.dll to my builds. See the Apachelounge forum: http://www.apachelounge.com/viewtopic.php?p=27023#27023