Install ffmpeg on CentOS (RHEL/Fedora)

來源:互聯網
上載者:User

標籤:

mkdir ffmpeg_sources

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/


Install ffmpeg on CentOS (RHEL/Fedora)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.