Install ffmpeg on CentOS (RHEL/Fedora)
2015-08-27 15:25
597 查看
mkdir ffmpeg_sources
cd ffmpeg_sources/
yasm
x264
lame
ogg
libvorbis
libvpx
ffmpeg
the option "headers" must be put here for download this m3u8
Reference
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
http://injustfiveminutes.com/2013/07/17/how-to-compile-latest-version-of-ffmpeg-on-centos-5/
cd ffmpeg_sources/
yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar zxvf yasm-1.2.0.tar.gz ./configure make && sudo make install
x264
git clone git://git.videolan.org/x264.git cd x264 ./configure --enable-static make && sudo make install
lame
curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz tar zxf lame-3.99.5.tar.gz ./configure --enable-nasm make && sudo make install
ogg
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz tar zxvf libogg-1.3.0.tar.gz cd libogg-1.3.0 ./configure make && sudo make install
libvorbis
curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz tar zxvf libvorbis-1.3.4.tar.gz ./configure --with-ogg make && sudo make install
libvpx
git clone git:////github.com/webmproject/libvpx.git cd libvpx/ ./configure make && sudo make install
sudo echo /usr/local/lib > /etc/ld.so.conf.d/local-libs.conf sudo ldconfig
ffmpeg
git clone git://git.videolan.org/ffmpeg.git ffmpeg cd ffmpeg ./configure --enable-libmp3lame --enable-gpl --enable-libx264 --enable-libxvid --enable-postproc --enable-nonfree --enable-libvpx --enable-libvorbis --enable-libfaac make && sudo make install
ffmpeg -headers "X-Forwarded-For: 160.53.186.194" -i http://stmw.rthk.hk/aod/_definst_/radio/archive/radio1/City_Snapshot/mp3/mp3:20150824.mp3/playlist.m3u8 -c copy City_Snapshot-20150824-.mp3
the option "headers" must be put here for download this m3u8
Reference
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
http://injustfiveminutes.com/2013/07/17/how-to-compile-latest-version-of-ffmpeg-on-centos-5/
相关文章推荐
- linux系统初始化——文件系统初始化步骤
- linux系统初始化——启动脚本是如何工作的
- linux系统初始化——sysinit文件写法详解
- linux系统初始化——inittab文件解析
- linux常用命令(5):rm命令
- linux系统初始化——busybox的inittab文件格式说明
- 基于Linux的嵌入式文件系统构建与设计
- Linux内核对于信号的实现机制和应用层的相关处理
- linux - 扫描技术与安全防范
- CentOS上 svn客户端的安装及应用
- linux 常见服务端口
- 树莓派常用Linux命令
- Linux Command Line learning
- linux配置网卡
- CentOS FTP服务搭建过程记录
- Solr 在Linux系统中的产品化安装
- linux压缩文件——解压方法
- linux LCD驱动(二)--FrameBuffer
- centos上libreoffice+unoconv安装步骤,实现word转pdf
- linux系统——线程