centos6 编译 安装 vlc
来源:互联网 发布:药品安全网络知识竞赛 编辑:程序博客网 时间:2024/06/06 01:32
安装额外的依赖库
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
yum installhttp://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
(以上为32位系统, 若为64位需查找相应的两个rpm位置安装即可)
安装依赖
from base (the official CentOS repo):
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig wget opencv zlib-devel dbus-devel lua-devel zvbi libdvdread-devel libdc1394-devel libxcb-devel xcb-util-devel libxml2-devel mesa-libGLU-devel pulseaudio-libs-devel alsa-lib-devel libgcrypt-devel qt-devel ghc-OpenGL-devel
from EPEL:
yum --enablerepo=epel install yasm libva-devel libass-devel libkate-devel libbluray-devel libdvdnav-devel libcddb-devel libmodplug-devel
from RPMforge:
yum --enablerepo=rpmforge install a52dec-devel libmpeg2-devel
x264
git clone git://git.videolan.org/x264
cd x264
./configure --enable-shared
make
make install
libfdk_aac
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
autoreconf -fiv
./configure --enable-shared
make
make install
lame
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar xzvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --enable-shared --enable-nasm
make
make install
libogg
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz
tar xzvf libogg-1.3.0.tar.gz
cd libogg-1.3.0
./configure --enable-shared
make
make install
libtheora
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
tar xzvf libtheora-1.1.1.tar.gz
cd libtheora-1.1.1
./configure --enable-shared
make
libvorbis
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz
tar xzvf libvorbis-1.3.3.tar.gz
cd libvorbis-1.3.3
./configure --enable-shared
make
make install
libvpx
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --enable-shared
make
make install
tar zxvf ffmpeg-1.2.tar.gz
cd ffmpeg-1.2
make distclean
./configure --enable-gpl --enable-libfdk_aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --disable-static --enable-shared
make
make install
在文件/etc/profile末尾加入:
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$
PKG_CONFIG_PATH
export PKG_CONFIG_PATH
source /etc/profile 或 ". /etc/profile"
libmadwget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz tar zxvf libmad-0.15.1b.tar.gzcd libmad-0.15.1b./configuremake make installNote:If the configure part doesn’t complete successfully, open the configure file with a text editor such as vim and comment or delete the following line, then re-run ./configure: optimize="$optimize -fforce-mem"liba52wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gztar zxvf a52dec-0.7.4.tar.gzcd a52dec-0.7.4 ./configure --enable-sharedmake && make installlibdvbpsi-0.2.2tar libdvbpsi-0.2.2.tar.gzcd libdvbpsi-0.2.2./configuremake && make install
vlc wget http://download.videolan.org/pub/videolan/vlc/2.0.5/vlc-2.0.5.tar.xzcd vlc./configure --enable-run-as-root --enable-debug (gdb调试用, 可在安装是将configure文件中-O2改为-O)make && make install
(以上安装之后是带图形界面可正常使用的, 我的视频输出选的x11, 音频选的alsa, 不过好像有杂音)
- centos6 编译 安装 vlc
- CentOS6.3安装VLC
- centos6.5安装VLC
- centos6、7安装vlc
- centos6、7安装vlc
- Fedora9编译安装vlc
- centos6.2 下安装vlc播放器
- Centos6.3上安装VLC播放器
- centos6.5 安装vlc播放器
- CentOS6.3快速安装VLC小记
- vlc编译与安装步骤
- CentOS6编译安装Nginx
- Centos6 编译安装PHP
- centos6编译安装nginx
- CentOS6编译安装LNMP
- VLC 编译安装 [for android, linux, windows]
- 在centos上编译和安装vlc
- CentOS6编译安装LAMP:编译安装 PHP5
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- STM32中的SysTick定时器
- 历年IOI国家集训队论文题目
- mysql5.1.52主从脚本(master-myisam,slave-myisam)
- 好的学习网站,设计类、网站类、编程类
- centos6 编译 安装 vlc
- Oracle日志文件管理与查看
- mysql主从复制中的几个DB
- Arcgis镶嵌数据集java代码操作
- Ant打包war文件
- Linq to sql 调用
- android第二天--hello world 以及2013.6.21一天工作
- 整合Ant
- mysql5.1多实例+主从配置脚本--基于MYISAM