正在显示
2 个修改的文件
包含
38 行增加
和
7 行删除
| @@ -62,6 +62,8 @@ SRS_MIPS_UBUNTU12=NO | @@ -62,6 +62,8 @@ SRS_MIPS_UBUNTU12=NO | ||
| 62 | SRS_DEV=NO | 62 | SRS_DEV=NO |
| 63 | # dev, open main server feature for dev, no bwtc/utest/research/librtmp | 63 | # dev, open main server feature for dev, no bwtc/utest/research/librtmp |
| 64 | SRS_FAST_DEV=NO | 64 | SRS_FAST_DEV=NO |
| 65 | +# demo, for the demo of srs, @see: https://github.com/winlinvip/simple-rtmp-server/wiki/SampleDemo | ||
| 66 | +SRS_DEMO=NO | ||
| 65 | # raspberry-pi, open hls/ssl/static | 67 | # raspberry-pi, open hls/ssl/static |
| 66 | SRS_PI=NO | 68 | SRS_PI=NO |
| 67 | # cubieboard, donot open ffmpeg/nginx. | 69 | # cubieboard, donot open ffmpeg/nginx. |
| @@ -154,6 +156,7 @@ Presets: | @@ -154,6 +156,7 @@ Presets: | ||
| 154 | --disable-all disable all features, only support vp6 RTMP. | 156 | --disable-all disable all features, only support vp6 RTMP. |
| 155 | --dev for dev, open all features, no nginx/gperf/gprof/arm. | 157 | --dev for dev, open all features, no nginx/gperf/gprof/arm. |
| 156 | --fast-dev for dev fast compile, the RTMP server, without bwtc/librtmp/utest/research. | 158 | --fast-dev for dev fast compile, the RTMP server, without bwtc/librtmp/utest/research. |
| 159 | + --demo for srs demo, @see: https://github.com/winlinvip/simple-rtmp-server/wiki/SampleDemo | ||
| 157 | --full enable all features, no gperf/gprof/arm. | 160 | --full enable all features, no gperf/gprof/arm. |
| 158 | 161 | ||
| 159 | Conflicts: | 162 | Conflicts: |
| @@ -236,6 +239,7 @@ function parse_user_option() { | @@ -236,6 +239,7 @@ function parse_user_option() { | ||
| 236 | --cubie) SRS_CUBIE=YES ;; | 239 | --cubie) SRS_CUBIE=YES ;; |
| 237 | --dev) SRS_DEV=YES ;; | 240 | --dev) SRS_DEV=YES ;; |
| 238 | --fast-dev) SRS_FAST_DEV=YES ;; | 241 | --fast-dev) SRS_FAST_DEV=YES ;; |
| 242 | + --demo) SRS_DEMO=YES ;; | ||
| 239 | --fast) SRS_FAST=YES ;; | 243 | --fast) SRS_FAST=YES ;; |
| 240 | --disable-all) SRS_DISABLE_ALL=YES ;; | 244 | --disable-all) SRS_DISABLE_ALL=YES ;; |
| 241 | --pure-rtmp) SRS_PURE_RTMP=YES ;; | 245 | --pure-rtmp) SRS_PURE_RTMP=YES ;; |
| @@ -287,12 +291,14 @@ function apply_user_presets() { | @@ -287,12 +291,14 @@ function apply_user_presets() { | ||
| 287 | if [ $SRS_ENABLE_ALL = NO ]; then | 291 | if [ $SRS_ENABLE_ALL = NO ]; then |
| 288 | if [ $SRS_DEV = NO ]; then | 292 | if [ $SRS_DEV = NO ]; then |
| 289 | if [ $SRS_FAST_DEV = NO ]; then | 293 | if [ $SRS_FAST_DEV = NO ]; then |
| 290 | - if [ $SRS_ARM_UBUNTU12 = NO ]; then | ||
| 291 | - if [ $SRS_MIPS_UBUNTU12 = NO ]; then | ||
| 292 | - if [ $SRS_PI = NO ]; then | ||
| 293 | - if [ $SRS_CUBIE = NO ]; then | ||
| 294 | - if [ $SRS_X86_X64 = NO ]; then | ||
| 295 | - SRS_X86_X64=YES; opt="--x86-x64 $opt"; | 294 | + if [ $SRS_DEMO = NO ]; then |
| 295 | + if [ $SRS_ARM_UBUNTU12 = NO ]; then | ||
| 296 | + if [ $SRS_MIPS_UBUNTU12 = NO ]; then | ||
| 297 | + if [ $SRS_PI = NO ]; then | ||
| 298 | + if [ $SRS_CUBIE = NO ]; then | ||
| 299 | + if [ $SRS_X86_X64 = NO ]; then | ||
| 300 | + SRS_X86_X64=YES; opt="--x86-x64 $opt"; | ||
| 301 | + fi | ||
| 296 | fi | 302 | fi |
| 297 | fi | 303 | fi |
| 298 | fi | 304 | fi |
| @@ -565,6 +571,31 @@ function apply_user_presets() { | @@ -565,6 +571,31 @@ function apply_user_presets() { | ||
| 565 | SRS_STATIC=NO | 571 | SRS_STATIC=NO |
| 566 | fi | 572 | fi |
| 567 | 573 | ||
| 574 | + # for srs demo | ||
| 575 | + if [ $SRS_DEMO = YES ]; then | ||
| 576 | + SRS_HLS=YES | ||
| 577 | + SRS_DVR=YES | ||
| 578 | + SRS_NGINX=NO | ||
| 579 | + SRS_SSL=YES | ||
| 580 | + SRS_FFMPEG_TOOL=YES | ||
| 581 | + SRS_TRANSCODE=YES | ||
| 582 | + SRS_INGEST=YES | ||
| 583 | + SRS_HTTP_PARSER=YES | ||
| 584 | + SRS_HTTP_CALLBACK=YES | ||
| 585 | + SRS_HTTP_SERVER=YES | ||
| 586 | + SRS_HTTP_API=YES | ||
| 587 | + SRS_LIBRTMP=YES | ||
| 588 | + SRS_BWTC=YES | ||
| 589 | + SRS_RESEARCH=NO | ||
| 590 | + SRS_UTEST=YES | ||
| 591 | + SRS_GPERF=NO | ||
| 592 | + SRS_GPERF_MC=NO | ||
| 593 | + SRS_GPERF_MP=NO | ||
| 594 | + SRS_GPERF_CP=NO | ||
| 595 | + SRS_GPROF=NO | ||
| 596 | + SRS_STATIC=NO | ||
| 597 | + fi | ||
| 598 | + | ||
| 568 | # if raspberry-pi specified, open ssl/hls/static features | 599 | # if raspberry-pi specified, open ssl/hls/static features |
| 569 | if [ $SRS_PI = YES ]; then | 600 | if [ $SRS_PI = YES ]; then |
| 570 | SRS_HLS=YES | 601 | SRS_HLS=YES |
| @@ -6,7 +6,7 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; | @@ -6,7 +6,7 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; | ||
| 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 | # demo needs ffmpeg to transcode the live stream. |
| 8 | echo "编译SRS" | 8 | echo "编译SRS" |
| 9 | -./configure --x86-x64 --with-ffmpeg && make | 9 | +./configure --demo && make |
| 10 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi | 10 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi |
| 11 | 11 | ||
| 12 | echo "编译SRS成功" | 12 | echo "编译SRS成功" |
-
请 注册 或 登录 后发表评论