cd ..wget http://downloads.xiph.org/releas ... bis-1.3.3.tar.gztar xzf libvorbis-1.3.3.tar.gz
cd libvorbis-1.3.3ldconfig./configure
make && make install
cd ..git clone http://git.chromium.org/webm/libvpx.gitcd libvpx./configure --enable-shared
make && make install
cd ..wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gztar xzf faad2-2.7.tar.gz
cd faad2-2.7./configure
make && make install
cd ..wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gztar xzf faac-1.28.tar.gz
cd faac-1.28sed -i 's@^char \*strcasestr@//char *strcasestr@' ./common/mp4v2/mpeg4ip.h./configure
make && make install
cd ..wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gztar xzf xvidcore-1.3.2.tar.gz
cd xvidcore/build/generic./configure
make && make install
cd ../../../git clone git://source.ffmpeg.org/ffmpeg.gitcd ffmpeg./configure --prefix=/usr --enable-version3 --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads
make && make install
ldconfig
ffmpeg
cd ..wget http://h264.code-shop.com/downlo ... ing-2.2.7.tar.gzgit clone git://github.com/arut/nginx-rtmp-module.gittar xzf nginx_mod_h264_streaming-2.2.7.tar.gz
sed -i '158,161s@^@//@g' nginx_mod_h264_streaming-2.2.7/src/ngx_http_streaming_module.c
cd nginx-1.4.4
make clean
./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --with-ld-opt=-ljemalloc --with-http_mp4_module --add-module=../nginx_mod_h264_streaming-2.2.7 --add-module=../nginx-rtmp-module
make
if [ -e "objs/nginx" ];then
/bin/mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx$(date +%m%d)
/bin/cp objs/nginx /usr/local/nginx/sbin/nginx
service nginx restart
fi