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 is 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)