tar xzvf yamdi-1.9.tar.gz cd yamdi-1.9 make && make install cd ..
b). yasm
1 2 3 4 5
tar xzvf yasm-1.3.0.tar.gz cd yasm-1.3.0 ./configure make && make install cd ..
c). x264
1 2 3 4 5
tar -xjvf x264.tar.bz2 cd x264-snapshot-20170111-2245 ./configure --enable-shared make && make install cd ..
d). lame
1 2 3 4 5
tar xzvf lame-3.99.5.tar.gz cd lame-3.99.5 ./configure --enable-nasm make && make install cd ..
e). faad2
1 2 3 4 5
tar zxvf faad2-2.7.tar.gz cd faad2-2.7 ./configure make && make install cd ..
f). faac
1 2 3 4 5
tar zxvf faac-1.28.tar.gz cd faac-1.28 ./configure make && make install cd ..
g). xvid
1 2 3 4 5
tar zxvf xvidcore-1.3.3.tar.gz cd xvidcore/build/generic ./configure make && make install cd ..
h). ffmpeg
1 2 3 4 5
tar -xjvf ffmpeg-3.2.4.tar.bz2 cd ffmpeg-3.2.4 ./configure --prefix=/opt/ffmpeg/ --enable-version3 --enable-libvpx --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-shared --enable-gpl --enable-postproc--enable-nonfree --enable-avfilter --enable-pthreads make && make install cd ..
i). 修改/etc/ld.so.conf如下:
1 2 3 4 5 6 7 8 9
include ld.so.conf.d/*.conf /lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/ffmpeg/lib ldconfig
4). 安装 Nginx
1 2 3 4 5 6 7
tar zxvf nginx-1.9.9.tar.gz unzip nginx-rtmp-module-master.zip tar zxvf openssl-1.0.2k.tar.gz cd nginx-1.9.9 ./configure --add-module=../nginx-rtmp-module-master --without-http_rewrite_module --with-openssl=../openssl-1.0.2k make & make install cd ..