我使用的是ffmpeg-php 但是按照配置完成后出错 如下: PHP Warning: PHP Startup: ffmpeg: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: ffmpeg: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in <b>Unknown</b> on line <b>0</b><br /> [Mon Aug 27 14:59:57 2012] [notice] Child 2172: Child process is running [Mon Aug 27 14:59:57 2012] [notice] Child 2172: Acquired the start mutex.
你可以看看这里http://www.ffmpeg.com.cn
php更没加载ffmpeg模块
你是说 用system命令 就如何command line 输入指令一样 是不?
那 ffmpeg.exe 一般来说放到哪里呢
放到系统文件夹下么? 如 \windows\system32\下
或者把当前的目录加入到 系统的环境变量中
上面是我本机的 服务器环境真正的服务器不在本机上,环境是linux+apache
是不是也是一样调用??
windows下的是ffmpeg.exe文件linux下一样下的是什么文件么?
不过我看到linux下的phpinfo()信息里面已经加载了ffmpeg模块阿
我很晕的
//在本地的PHP代碼裏實現,把WMV文件轉為FLV
$sys_forder="/dpp_group";
$s_path=$_SERVER["DOCUMENT_ROOT"].$sys_forder;
$a=$s_path."\ffmpeg\ffmpeg";
$b=$s_path."\abc.flv"; //源文件
$c=$s_path."\gp.jpg"; //截取的圖片存放路徑和名稱
$d=$s_path."\aaa.wmv"; //源文件
$e=$s_path."\my.flv"; //轉換後的文件的路徑和名稱
system("$a -i $b -y -f image2 -ss 8 -t 0.011 -s 320x240 $c");//截圖用的代碼
//system("$a -i $d -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 $e"); //轉換用的代碼
?>
我也在找这个。我也是无法安装成功,我下载了ffmpeg-php 但是我的机子是WIN的,而网络上面的安装说明都是Linux的。
希望联系下。QQ 296946867
前者是php的一个扩展,后者通过cmd命名执行.
tmd的,服务器上一直无法实现cmd执行.
PHP Warning: PHP Startup: ffmpeg: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: ffmpeg: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in <b>Unknown</b> on line <b>0</b><br />
[Mon Aug 27 14:59:57 2012] [notice] Child 2172: Child process is running
[Mon Aug 27 14:59:57 2012] [notice] Child 2172: Acquired the start mutex.