嗨那里我怎么能确保ffmpeg安装在我的服务器…
我试过这个PHP代码来检查:
<?php $ffmpeg = trim(shell_exec('which ffmpeg')); // or better yet: $ffmpeg = trim(shell_exec('type -P ffmpeg')); if (empty($ffmpeg)) { die('ffmpeg not available'); } shell_exec($ffmpeg . ' -i ...');?>
它返回我'ffmpeg不可用',但我的服务器pipe理员告诉我,这是安装!
我也有访问centos控制台
你有没有尝试使用下面的命令,
ffmpeg -version
如果安装了以上命令应该显示FFMPEG版本信息。