gpt4 book ai didi

ffmpeg - 在 CentOS 上安装 ffmpeg-php

转载 作者:行者123 更新时间:2023-12-04 21:47:13 26 4
gpt4 key购买 nike

我正在尝试在服务器(CentOS)上安装 ffmpeg-php,但在“make”命令之后,我得到一个错误:

  from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/bits/stat.h:91: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:92: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:93: error: field 'st_ctim' has incomplete type
In file included from /usr/local/include/php/main/php_streams.h:28,
from /usr/local/include/php/main/php.h:400,
from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/sys/stat.h:367: error: array type has incomplete element type
/usr/include/sys/stat.h:374: error: array type has incomplete element type
In file included from /usr/local/include/php/main/php.h:406,
from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:



/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:218: error: expected specifier-qualifier-list before 'time_t'
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:246: error: expected declaration specifiers or '...' before 'time_t'
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init'
make: *** [ffmpeg-php.lo] Error 1

ffmpeg 以及 mplayer 和 mencoder 安装成功。

ffpeg:
 configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-version3
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 56.100 / 54. 56.100
libavformat 54. 27.101 / 54. 27.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 16.104 / 3. 16.104
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100

有什么帮助吗?

最佳答案

听起来 ffmpeg-php 不适用于较新的 libavcodec,它们将 avcodec_init 替换为另一个函数,如果它的替换返回相同的内容,您可能可以重新编码一个调用。 ffmpeg-php 好像很久没有更新了,但是你可能想试试 svn 的 HEAD 版本

http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2012-April/123454.html

关于ffmpeg - 在 CentOS 上安装 ffmpeg-php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12485991/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com