Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/252.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu上带有PHP-7.0的FFMpeg_Php_Ffmpeg - Fatal编程技术网

Ubuntu上带有PHP-7.0的FFMpeg

Ubuntu上带有PHP-7.0的FFMpeg,php,ffmpeg,Php,Ffmpeg,我有一个带有PHP-7.0的NGINX服务器,我想安装ffmpeg PHP扩展。我已经试了几天了,在很多方面都是如此 到目前为止,有效的方法是手动编译ffmpeg(),但在尝试编译ffmpeg-php(https://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download)时,我遇到以下错误消息: root@zumbiserver-mercury:~/php7 ffmpeg

我有一个带有PHP-7.0的NGINX服务器,我想安装ffmpeg PHP扩展。我已经试了几天了,在很多方面都是如此

到目前为止,有效的方法是手动编译ffmpeg(),但在尝试编译ffmpeg-php(https://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download)时,我遇到以下错误消息:

root@zumbiserver-mercury:~/php7 ffmpeg#make/bin/bash

/root/php7 ffmpeg/libtool--mode=编译cc-I.-I/root/php7 ffmpeg -DPHP_ATOM_INC-I/root/php7 ffmpeg/include-I/root/php7 ffmpeg/main-I/root/php7 ffmpeg-I/usr/include/php/20151012-I/usr/include/php/20151012/main-I/usr/include/TSRM-I/usr/include/php/20151012/Zend-I/usr/include/php/20151012/ext/usr/include/php/20151012/ext/date/lib-I/usr/local/libavcodec/-I/usr/local/include/libavformat/-I/usr/local/include/libavutil/-I/usr/local/include/libavfilter/-I/usr/local/include/libavdevice/-DHAVE\u CONFIG\u H-g-O2-Wall-fno严格别名-c/root/php7 ffmpeg/ffmpeg-php.c-o ffmpeg-php.lo libtool:compile:cc -I.-I/root/php7 ffmpeg-DPHP_ATOM_INC-I/root/php7 ffmpeg/include-I/root/php7 ffmpeg-I/usr/include/php/20151012-I/usr/include/php/20151012/main-I/usr/include/php/20151012/TSRM-I/usr/include/php/20151012/Zend-I/usr/include/php/20151012/ext-I/usr/include/php/20151012/php/20151012/ext/date/lib/local/av-I/usr/local/include/libavformat/-I/usr/local/include/libavutil/-I/usr/local/include/libavfilter/-I/usr/local/include/libavdevice/-DHAVE_-CONFIG_-H-g-O2-Wall-fno严格别名-c/root/php7 ffmpeg/ffmpeg-php.c-fPIC-DPIC-o.libs/ffmpeg-php.o 文件包括在/usr/include/x86_64-linux-gnu/sys/stat.h:104:0中, from/usr/include/php/20151012/Zend/Zend_stream.h:28, from/usr/include/php/20151012/Zend/Zend.h:41, from/usr/include/php/20151012/main/php.h:36, from/root/php7 ffmpeg/ffmpeg php.c:40:/usr/include/x86_64-linux-gnu/bits/stat.h:91:21:错误:字段 “st_atim”的类型不完整 struct timespec st_atim;/*上次访问的时间/ ^/usr/include/x86_64-linux-gnu/bits/stat.h:92:21:错误:字段 “st_mtim”的类型不完整 struct timespec st_mtim;/上次修改的时间/ ^/usr/include/x86_64-linux-gnu/bits/stat.h:93:21:错误:字段 “st_ctim”的类型不完整 struct timespec st_ctim;/上次状态更改的时间/ ^/usr/include/x86_64-linux-gnu/bits/stat.h:152:21:错误:字段 “st_atim”的类型不完整 struct timespec st_atim;/上次访问的时间/ ^/usr/include/x86_64-linux-gnu/bits/stat.h:153:21:错误:字段 “st_mtim”的类型不完整 struct timespec st_mtim;/上次修改的时间/ ^/usr/include/x86_64-linux-gnu/bits/stat.h:154:21:错误:字段 “st_ctim”的类型不完整 struct timespec st_ctim;/上次状态更改的时间/ ^在/usr/include/php/20151012/Zend/Zend_stream.h:28:0中包含的文件中, from/usr/include/php/20151012/Zend/Zend.h:41, from/usr/include/php/20151012/main/php.h:36, from/root/php7 ffmpeg/ffmpeg php.c:40:/usr/include/x86_64-linux-gnu/sys/stat.h:364:31:错误:数组类型已更改 元素类型“struct timespec”不完整 const struct timespec\uu times[2], ^/usr/include/x86_64-linux-gnu/sys/stat.h:371:54:错误:数组类型已更改 不完整的元素类型“struct timespec”extern int futimens(int __fd,const struct timespec __times[2])_THROW; ^在/usr/include/php/20151012/main/php.h:395:0中包含的文件中, from/root/php7 ffmpeg/ffmpeg php.c:40:/usr/include/php/20151012/Zend/Zend_virtual_cwd.h:218:2:错误: 未知类型名称“time\t”time\t过期
^/usr/include/php/20151012/Zend/Zend_virtual_cwd.h:248:86:错误: 未知类型名称“time\u t”CWD\u API realpath\u cache\u bucket realpath\u cache\u lookup(const char*path、int path\u len、time\t); ^/root/php7 ffmpeg/ffmpeg php.c:在函数'zm_startup_ffmpeg'中: /root/php7 ffmpeg/ffmpeg php.c:108:5:警告:隐式声明 函数“avcodec_init”[-Wimplicit函数声明] avcodec_init(); ^/root/php7 ffmpeg/ffmpeg php.c:111:5:警告:“av_register_all”已弃用[-Wdeprecated声明] av_寄存器_all(); ^在/root/php7 ffmpeg/ffmpeg php.c:43:0:/usr/local/include/libavformat/avformat.h:2025:6中包含的文件中:注意:此处声明 无效AVU登记簿(全部无效)


有人能给我点灯吗?我不知道还能做什么

ffmpeg php是一个死气沉沉的项目,已经10年没有更新了。不要浪费你的时间。如果必须使用包装器,请参阅或,这些包装器目前似乎正在积极维护


你需要包装纸吗?也许您可以直接在脚本中使用
ffmpeg
工具。请参阅。

为什么要使用过时的PHP版本,如7.0?如果不是7.2,我希望至少是7.1。
  ^ Makefile:194: recipe for target 'ffmpeg-php.lo' failed make: *** [ffmpeg-php.lo] Error 1