全球主机交流论坛

标题: 有谁在linux上装过 ffmpeg 吗 [打印本页]

作者: Turing    时间: 2009-9-6 07:33
标题: 有谁在linux上装过 ffmpeg 吗
我在安装时出现错误:
---------------------------------------------------
[root@server ffmpeg]# ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared

Unknown option "--enable-libogg".
See ./configure --help for available options.
---------------------------------------------------

--enable-libogg这个不知道是派什么用场?
作者: tom    时间: 2009-9-6 08:24
这个是我们公司写的Install. 给CentOS的

=================================================

安装 Dependencies
  1.   yum -y update
  2.   yum -y install gcc gcc-c++ ffmpeg ffmpeg-devel php php-devel php-gd make
复制代码
下载 ffmpeg-php
  1.   cd ~
  2.   wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download
  3.   tar -xjvf ffmpeg-php-0.6.0.tbz2
  4.   mv ffmpeg-php-0.6.0 /usr/include/php/ext
复制代码
编译 ffmpeg
  1.   cd /usr/include/php/ext
  2.   phpize
  3.   ./configure
  4.   make && make install
复制代码
添加下面一行。加进 ffmpeg.ini
  1.   nano /etc/php.d/ffmpeg.ini
  2.         extension=ffmpeg.so
复制代码
重启 Web Server
  1.   service httpd restart
复制代码

作者: Turing    时间: 2009-9-6 08:34
多谢stunna,但看得有点头晕。。。。   libogg有什么用处呢?不加这个选项会有什么问题?
作者: cpuer    时间: 2009-9-6 09:20
标题: 回复 3# 的帖子
libogg是组装.ogg流媒体的库?
作者: Turing    时间: 2009-9-6 12:35
貌似是一种音频格式,不知道不装会有什么问题
作者: cpuer    时间: 2009-9-6 12:50
标题: 回复 5# 的帖子
.ogg 就是一种音频格式吧,libogg应该是组装.ogg流媒体的库了。
作者: Turing    时间: 2009-9-6 15:53
原帖由 stunna 于 2009-9-6 08:24 发表

[root@server /]# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module



运行出现这个错误:

[root@server /]# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
作者: cpuer    时间: 2009-9-6 15:57
标题: 回复 7# 的帖子
cd /usr/include/php/ext
  phpize

那应该是在ext目录里面phpize的吧。
作者: tom    时间: 2009-9-6 15:58
你php 什么版本?

我都没看见过那个error, 奇怪
作者: Turing    时间: 2009-9-6 16:03
[root@server ext]# php -v
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:18)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
作者: cpuer    时间: 2009-9-6 16:07
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:18)

  stunna看出什么问题了没?
作者: tom    时间: 2009-9-6 16:09
我的是 5.2.10  
作者: cpuer    时间: 2009-9-6 16:12
原帖由 Turing 于 2009-9-6 15:53 发表



运行出现这个错误:

[root@server /]# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module


我觉得还是得在扩展目录下运行phpize而不是在/下运行。
作者: Turing    时间: 2009-9-6 16:41
原帖由 cpuer 于 2009-9-6 16:12 发表


我觉得还是得在扩展目录下运行phpize而不是在/下运行。


是在扩张目录下了啊:
cd /usr/include/php/ext
  phpize

先CD进去了,再运行的phpize
作者: cpuer    时间: 2009-9-6 16:46
那你看下 [root@server /]# phpize  怎么是在/ 下?
作者: Turing    时间: 2009-9-6 16:50
[root@server ext]# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module



还是这个错误
作者: cpuer    时间: 2009-9-6 16:50
标题: 回复 16# 的帖子
到/ 里面,然后 find -name config.m4  看看有没有这文件。
作者: Turing    时间: 2009-9-6 17:00
原帖由 cpuer 于 2009-9-6 16:50 发表
到/ 里面,然后 find -name config.m4  看看有没有这文件。



找到了,在更下一级目录里
作者: Turing    时间: 2009-9-6 17:03
添加下面一行。加进 ffmpeg.ini
复制内容到剪贴板
代码:
  nano /etc/php.d/ffmpeg.ini
        extension=ffmpeg.so

------------------------------------

找不到ffmpeg.ini这个文件
作者: cpuer    时间: 2009-9-6 17:07
原帖由 Turing 于 2009-9-6 17:00 发表

找到了,在更下一级目录里

那就在这个下级目录里面phpize。
作者: cpuer    时间: 2009-9-6 17:08
原帖由 Turing 于 2009-9-6 17:03 发表
添加下面一行。加进 ffmpeg.ini
复制内容到剪贴板
代码:
  nano /etc/php.d/ffmpeg.ini
        extension=ffmpeg.so

------------------------------------

找不到ffmpeg.ini这个文件 ...

看看能不能VPS里面搜到ffmpeg.ini这个文件,不然就等stunna装过的人问问了。
作者: Turing    时间: 2009-9-6 17:16
这是程序作者给我的安装方法,也就是出现 Unknown option "--enable-libogg". 这个错误的方法:
http://www.forumwebdesign.com/index.php?topic=88.0;wap2

给了我这个安装方法就不管了   说可以提供帮助安装,25美圆   

[ 本帖最后由 Turing 于 2009-9-6 17:48 编辑 ]
作者: cpuer    时间: 2009-9-6 18:18
标题: 回复 22# 的帖子
25美元,真吸引我。




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4