winlin

srs demo requires ffmpeg to transcode.

@@ -4,8 +4,9 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; @@ -4,8 +4,9 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本";
4 4
5 # step 1: build srs 5 # step 1: build srs
6 # nginx is not needed, we use cherrypy to delivery hls. 6 # nginx is not needed, we use cherrypy to delivery hls.
  7 +# demo needs ffmpeg to transcode the live stream.
7 echo "编译SRS" 8 echo "编译SRS"
8 -./configure --x86-x64 && make 9 +./configure --x86-x64 --with-ffmpeg && make
9 ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi 10 ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi
10 11
11 echo "编译SRS成功" 12 echo "编译SRS成功"