网络实验室

 找回密码
 注册账户
查看: 1617|回复: 4

ffmpeg 简单安装教程 centos el

[复制链接]
无心的棋子 发表于 2008-10-13 06:32:24 | 显示全部楼层 |阅读模式
This is the easy way to install ffmpeg on CentOS or RHEL/Redhat Enterprise Linux the easy way.
这个方式安装ffmpeg很简单
第一步 修改源
vi /etc/yum.repos.d/dag.repo
加入:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

增加
/usr/local/lib

/etc/ld.so.conf

运行:
ldconfig -v
运行:
rpm -Uvh http://apt.sw.be/packages/rpmfor ... 6-1.el4.rf.i386.rpm
yum update
yum install ffmpeg ffmpeg-devel

如果还需要安装php模块 请进入 http://ffmpeg-php.sourceforge.net/ 查询
To install the PHP extension, use this webpage: http://ffmpeg-php.sourceforge.net/
如果需要测试模块运行
请保存为php 然后运行
  1. <?php
  2. $extension = "ffmpeg";
  3. $extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
  4. $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;

  5. // load extension
  6. if(!extension_loaded($extension)) {
  7.     dl($extension_soname) or die("Can't load extension $extension_fullname\n");
  8. }
  9. ?>
复制代码
全部搞定
tianxiahui 发表于 2008-10-24 14:52:30 | 显示全部楼层
会了谢谢
gptyacom 发表于 2008-10-26 13:48:35 | 显示全部楼层

以后弄得着,先收藏了。

以后弄得着,先收藏了。
sean0407 发表于 2008-12-9 16:15:58 | 显示全部楼层
真的和標題說的一樣

算單教程!呵
hkbnp 发表于 2009-1-23 16:30:28 | 显示全部楼层
什么内容呢,看看
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

黑屋|存档|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2024-5-6 03:07 , Processed in 0.082671 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表